Skip to content

How to set a checkbox "checked"? #450

Closed Answered by bartonhammond
bartonhammond asked this question in Q&A
Discussion options

You must be logged in to vote

Seems that working table stuff doesn't work so well..
Just working with input is fine

 <input :if="el.done" id="chk-{el.id}" type="checkbox" @click="doneUpdate" checked />
 <input :if="!el.done" id="chk-{el.id}" type="checkbox" @click="doneUpdate" />

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bartonhammond
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant