Lets say I have a checkbox control and a label.
what I want to do is when I click on label then checkbox should get checked.
How do we do that? I know its a pure html problem. I have seen this in say (gmail, facebook)
Here is the fiddle
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add the
forattribute to your label and the sameidto the checkbox – http://jsfiddle.net/k8Cgm/2/