<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Good evening,<div><br></div><div>I believe that radios and checkboxes are wrapped in theme_radios and theme_checkboxes respectively.</div><div><br></div><div>You should be able to override the functions to add the required IDs. &nbsp;I agree that a core bug should be filed against this.</div><div><br></div><div>HTH,<br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Everett<br><br>Follow me on Twitter<br><a href="http://twitter.com/ezufelt">http://twitter.com/ezufelt</a><br><br>View my LinkedIn Profile<br><a href="http://www.linkedin.com/in/ezufelt">http://www.linkedin.com/in/ezufelt</a><br></div><div><br></div></div></span></div></span><br class="Apple-interchange-newline"> </div><br><div><div>On 2-Jan-10, at 5:54 AM, Martin Stadler wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi!<br><br>I stumbled upon the issue that there are no form element wrapper IDs for radios and checkboxes without the #title or #description attributes in D6 (<a href="http://drupal.org/node/215301">http://drupal.org/node/215301</a>). I need an ID to hide the label with CSS for accessability. I checked how this is in D7 and it seems to me that there are no wrapper IDs at all, only classes which are in the case of radios and checkboxes not unique (I know that classes are not supposed to be unique, that's why I want IDs):<br><br>&lt;div class="form-item form-type-radios form-item-myformelem"&gt;<br> &nbsp;&lt;label&gt;My Form Element &lt;/label&gt;<br> &nbsp;&lt;div class="form-radios"&gt;<br> &nbsp;&nbsp;&nbsp;&lt;div class="form-item form-type-radio form-item-myformelem"&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="radio" id="edit-myformelem-0" name="myformelem" value="0" &nbsp;checked="checked" &nbsp;class="form-radio" /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label class="option" for="edit-myformelem-0"&gt;Option 1 &lt;/label&gt;<br> &nbsp;&nbsp;&nbsp;&lt;/div&gt;<br> &nbsp;&nbsp;&nbsp;&lt;div class="form-item form-type-radio form-item-myformelem"&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="radio" id="edit-myformelem-1" name="myformelem" value="1" &nbsp;&nbsp;class="form-radio" /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label class="option" for="edit-myformelem-1"&gt;Option 2 &lt;/label&gt;<br> &nbsp;&nbsp;&nbsp;&lt;/div&gt;<br> &nbsp;&lt;/div&gt;<br>&lt;/div&gt;<br><br>In modern browsers this may be ok but in IE6 I can't access the wrapper div nor the top label directly.<br><br>If #title is omitted in the PHP form api code then we get<br><br>&lt;div class="form-radios"&gt;<br> &nbsp;&lt;div class="form-item form-type-radio form-item-myformelem2"&gt;<br> &nbsp;&nbsp;&nbsp;&lt;input type="radio" id="edit-myformelem2-0" name="myformelem2" value="0" &nbsp;checked="checked" &nbsp;class="form-radio" /&gt;<br> &nbsp;&nbsp;&nbsp;&lt;label class="option" for="edit-myformelem2-0"&gt;Option 1 &lt;/label&gt;<br> &nbsp;&lt;/div&gt;<br> &nbsp;&lt;div class="form-item form-type-radio form-item-myformelem2"&gt;<br> &nbsp;&nbsp;&nbsp;&lt;input type="radio" id="edit-myformelem2-1" name="myformelem2" value="1" &nbsp;&nbsp;class="form-radio" /&gt;<br> &nbsp;&nbsp;&nbsp;&lt;label class="option" for="edit-myformelem2-1"&gt;Option 2 &lt;/label&gt;<br> &nbsp;&lt;/div&gt;<br>&lt;/div&gt;<br><br>How can I style this individual wrapper now? I may have multiple radios in my form.<br><br>Actually the problem is the same in D6 and D7. In D6 we have wrapper IDs but not for radios and checkboxes and in D7 we have kind of unique classes for the wrappers but these are not unique for radios and checkboxes. Why were the wrapper IDs removed in D7? Pseudo-unique classes seem strange to me. How can we have a unique accessor for wrappers for radios and checkboxes? Can we add the wrapper IDs for them in D6? Why were these wrapper IDs unset in D6?<br><br>Martin<br><br></div></blockquote></div><br></div></body></html>