Jump to content

[SOLVED] Label tags 'for' checkbox arrays?


justravis

Recommended Posts

I use checkbox arrays all the time.

 

Give the checkbox an ID and use that with the for property of the label object:

<input type="checkbox" name="chks[]" id="chk1"><label for="chk1">checkbox1</label>
<input type="checkbox" name="chks[]" id="chk2"><label for="chk2">checkbox2</label>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.