Click here to Skip to main content
15,881,380 members
Articles / Web Development / HTML
Alternative
Tip/Trick

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 12.2K   3   1
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)


Written By
Team Leader EPAM
Ukraine Ukraine
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralReason for my vote of 5 Very Good and Helpfull Pin
Technoses30-Dec-11 19:57
Technoses30-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.