...

View Full Version : clickable label next to checkbox?



turpentyne
10-26-2011, 09:54 PM
Hopefully this is a simple one... I just want the text label next to a checkbox to be clickable as well as the box, but I'm not quite sure how to do that.


<input type="checkbox" name="filter1" value="names"/><label for="names">Name</label>

VIPStephan
10-27-2011, 12:49 AM
Two options:


<input type="checkbox" name="filter1" value="names" id="whatever" /><label for="whatever">Name</label>

or


<label><input type="checkbox" name="filter1" value="names" /> Name</label>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum