advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Partners & Affiliates
advertisement
advertisement
Tip of the Day
Average Rating: 1/5 | Rate this item | 2 users have rated this item.
Expertise: Beginner
Language: HTML
August 6, 2003
Add User-friendliness to an HTML CheckBox/RadioButton
The HTML CheckBox/RadioButton is selected only by clicking on the control and not the text associated with it. Using <Label>, you can bound the text with the CheckBox.

For instance, the following checkbox is selected only by clicking the checkbox:


<input type=checkbox name=c1>All Items
However, this checkbox can be selected either by clicking the checkbox or the text:

<input type=checkbox name=c1>
<Label for="c1">All Items</Label>
Note: This works only in IE.
Prasad Haridass
If you have a hot tip and we publish it, we'll pay you. However, due to accounting overhead we no longer pay $10 for a single tip submission. You must accumulate 10 acceptable tips to receive payment. Be sure to include a clear explanation of what the technique does and why it's useful. If it includes code, limit it to 20 lines if possible. Submit your tip here.
Please rate this item (5=best)
 1  2  3  4  5
advertisement
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers