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>

-Brian

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to