Click here to Skip to main content
15,355,050 members
Articles / Web Development / HTML
Alternative
Tip/Trick
Posted 4 Jul 2011

Stats

11.3K views
3 bookmarked

How to make text of an html checkbox clickable (like ASP.NET control)

Rate me:
Please Sign up or sign in to vote.
4.89/5 (10 votes)
5 Jul 2011CPOL
There is shorter way to do this: Some Text
There is shorter way to do this:

<label><input type="checkbox" id="checkbox1"/> Some Text</label>

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Lisetsky Val
Team Leader EPAM
Ukraine Ukraine
No Biography provided

Comments and Discussions

 
GeneralReason for my vote of 5 Very Good and Helpfull Pin
Technoses30-Dec-11 19:57
MemberTechnoses30-Dec-11 19:57 
Reason for my vote of 5
Very Good and Helpfull

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.