Click to See Complete Forum and Search --> : Check Box / Radio Button Selection


nitrexoxide
04-04-2007, 02:20 AM
Hi I was wondering how you can make it so you click the text next to a checkbox or a radio button and it selects the checkbox / radio button?

For example, www.google.co.nz, click on the text "pages from New Zealand" or "the web" and the radio button next to it is selected.

My the way, it needs to be html strict, no tables, no javascript (if you can help it). Just good old css and or html is what I need ;)

Thanks! :)

Suhas Dhoke
04-04-2007, 04:58 AM
This is using by the <DIV> tag.
If you want to do this... then place each check box or radio in a individual <DIV> tag.
And on "onClick" event of the <DIV> tag, checked (selected) the radio or check box.

Good Luck.

ray326
04-05-2007, 12:27 AM
No Javascript or divs required. The text is the label for the input.

Search: <input id="all" name="meta" value="" checked="checked" type="radio"><label for="all"> the web </label>

nitrexoxide
04-12-2007, 08:04 PM
Thanks for the help, it worked great ;)