[thelist] [asp] improving a generalized options function
aardvark
roselli at earthlink.net
Wed Jul 11 11:31:34 CDT 2001
> From: "Warden, Matt" <mwarden at mattwarden.com>
[...]
> <tr><td><input type="checkbox" class="yo" value="[TEM:OPTION]"
> [SELECTED]></td><td> [TEM:LABEL]</td></tr>
i am *so* unable to munge the ASP right now, but while i was
looking, it occurred to me that you should add another attribute --
an 'id' attribute...
<input ... id="[TEM:NAME]_[TEM:OPTION]">
<label for="[TEM:NAME]_[TEM:OPTION]">[TEM:LABEL]</label>
i generally make my ids match my names, but in the case of
checkboxes and radio buttons, i merge the name with the value,
and that guarantees a unique id for every element...
More information about the thelist
mailing list