javascript - Trying to have a link + checkbox, both clickable and text change on click -


currently i'm using jquery have checkbox , text, text change after checkbox ticked, i'm trying work box or text can clicked , result changed text , checked box?

can assist me further?

enter image description here

just put label text around checkbox , text, becomes like:

    <label><input type="checkbox" />add cart</label> 

this makes text part of checkbox


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -