[html-formfu] multiple ids of the same value in radiogroup

Mario Minati mario.minati at googlemail.com
Mon Sep 24 19:23:21 GMT 2007

On Monday 24 September 2007 15:54:50 Brian Cassidy wrote:
> Hey Gang,
> I was just playing around with the Radiogroup element, and i noticed the
> default rendering sets the same id for each option. Naturally this is
> invalid html. Traditionally i've done <input type="radio" name="$field"
> value="$value" id="${field}_${value}" /> <label
> for="${field}_${value}">...</label> because the value is usually a
> numeric id. This give you something like:
> <input type="radio" name="foo" value="1" id="foo_1" /> <label
> for="foo_1">...</label>

We have to investigate this.


More information about the HTML-FormFu mailing list