Dan G. Switzer, II wrote:
Denis,

<label for="idOption1">
  <input type="checkbox" name="option1" id="idOption1" value="Novedad1"
/>
  Novedad 1: HOla holaaa
</label>

If you click on the text "Novedad 1: HOla holaaa" the browser will behave
as
if you clicked on the checkbox itself.

-Dan
just as a side-note, this does not work in ie6..

Say what? It works fine for me:
http://www.pengoworks.com/workshop/jquery/field.plugin.htm

All the checkbox and radio elements on the page use label elements.

-Dan



yes, sorry, it works if you include the for="" bit.. if you leave it out (and write it like this, which is also 100% valid), clicking on the label won't work in ie6.. not sure about ie7.. in firefox it works:

<label>
  Name
  <input type="checkbox" name="option" id="option" value="value" />
</label>

dennis.

Reply via email to