Closed Thread Icon

Preserved Topic: check checkboxes by clicking on text beside it (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8304" title="Pages that link to Preserved Topic: check checkboxes by clicking on text beside it (Page 1 of 1)" rel="nofollow" >Preserved Topic: check checkboxes by clicking on text beside it <span class="small">(Page 1 of 1)</span>\

 
slim___shady
Nervous Wreck (II) Inmate

From: canada
Insane since: Aug 2002

posted posted 09-12-2002 04:40

i want it so that the checkboxes get checked not onl by clicking on the checkbox itself but also by clicking the text beside it.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 09-12-2002 08:07

<input type="checkbox" name="name" value="value" id="checkbox_id" /><label for="checkbox_id">Check This!</label>


slim___shady
Nervous Wreck (II) Inmate

From: canada
Insane since: Aug 2002

posted posted 09-12-2002 16:26

thanx a lot mr.max
it works
and without javascript too!

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 09-12-2002 17:53

Heh.

We've forgotten how to use HTML correctly so badly that we strive to create effects with complicated scripts that it already has built in.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 09-12-2002 19:22

lol That is super cool. Never would have thunk.



.:[ Never resist a perfect moment ]:.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 09-12-2002 21:04

I'm a big fan of such things as LABEL (as well as ACCESSKEY, TABINDEX and FIELDSET and LEGEND) you'll see such elements in the GN redesign - for more info see stuff like:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncodecorn/html/corner111799.asp
http://www.w3.org/TR/REC-html40/interact/forms.html

They have important implications for accessibility:
http://bobby.watchfire.com/bobby/html/en/gls/g45.html

___________________
Emps

FAQs: Emperor

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 09-12-2002 21:16

See also http://diveintoaccessibility.org/day_28_labeling_form_elements.html

« BackwardsOnwards »

Show Forum Drop Down Menu