Monday, October 31, 2011

Re: Making radio button labels clickable?

On Oct 31, 2011, at 11:29, dave wrote:

> What I want to achieve:
>
> <input type="radio" value="1" class="list required" id="1"
> name="data[Member][gender]">
> <label for="1">Male</label>
> <input type="radio" value="2" class="list required" id="2"
> name="data[Member][gender]">
> <label for="2">Female</label>

For the record, "1" and "2" are not valid HTML IDs. IDs must begin with a letter. Some browsers enforce this.


--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: