twitter
    Find out what I'm doing, Follow Me :)
If you have any question, suggestion or article topic for me to write, feel free to contact me through my shout box. ;) Some time I need an idea to write. hehe Hopefully I can help you and share my expertise.

better checkbox click with label

Normally we put text after checkbox to give more info for that checkbox like this


Remember info?



Remember info?
However, user can't click on that Remember info? text to check or uncheck that checkbox by using this method.

Here is the enhancement for that problem.





Instead of using normal text, we are using label and for tag. for tag inside label element attribute is refer to which checkbox.Then, when you click on remember info?.. the checkbox will checked/unchecked accordingly.

0 comments:

Post a Comment