dimanche 31 juillet 2016

How to check or uncheck checkboxes by cliking on text instead of checkbox itself?

I have seen it on several webpages (cannot recall where exactly atm) where I am able to check or uncheck checkboxes by clicking on the text in front of the checkbox. I know how to do it in JavaScript (create a span with onclick()) , but I want to know if there is any way I can do it without JavaScript.




Aucun commentaire:

Enregistrer un commentaire