I like the idea, but can't we just use:
 
<label for="[input id]">label text</label>
 
 
See http://www.w3schools.com/tags/tag_label.asp.
 
Anthony

On Tuesday, August 23, 2011 7:34:50 AM UTC-4, ryo1kato wrote:

> Hi, 
>
> I'm frustrated that I can't check/select the checkboxes / radio- 
> buttons 
> by clicking on their labels rather than the box/buttons. 
> So, here's my own solution for web2py, 
> because I couldn't find any by quick googling. 
>
> * http://bit.ly/nsNAmq (deep link in http://code.google.com/) 
>
> * Demo is available on here: 
> http://ryo1kato.appspot.com/checkbox/default/ 
>     (Tested on IE6, Firefox5,6, GoogleChrome13) 
>
> ...It's quite possible you have better solution, because 
> I'm pretty new to both web2py and HTML/JavaScript. 
> However, I'm happy if this feature is supported as web2py's default. 
> (perhaps by someone's better implementation...) 
>
> -- 
> R.Kato 
>

Reply via email to