Basically what I wan't to do is to make jQuery function that when it is clicked on the checkbox name I have prompt window to change checkbox name, but it is automatically check/uncheck checkbox itself. I need that Is it possible to don't trigger checkbox when clicked on its label?
P.S Hope it clear what i wrote :)
My markup is:
<div class="checkbox">
<input id="check1" type="checkbox" name="check">
<label for="check1">Checklist One</label>
<br>
<input id="check2" type="checkbox" name="check" checked>
<label for="check2">Checklist two</label>
<br>
<input id="check3" type="checkbox" name="check">
<label for="check3">Checklist 3</label>
</div> <!-- END OF CHECKBOX -->
Aucun commentaire:
Enregistrer un commentaire