<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. 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><div class="form-item form-type-radios form-item-myformelem"><br> <label>My Form Element </label><br> <div class="form-radios"><br> <div class="form-item form-type-radio form-item-myformelem"><br> <input type="radio" id="edit-myformelem-0" name="myformelem" value="0" checked="checked" class="form-radio" /><br> <label class="option" for="edit-myformelem-0">Option 1 </label><br> </div><br> <div class="form-item form-type-radio form-item-myformelem"><br> <input type="radio" id="edit-myformelem-1" name="myformelem" value="1" class="form-radio" /><br> <label class="option" for="edit-myformelem-1">Option 2 </label><br> </div><br> </div><br></div><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><div class="form-radios"><br> <div class="form-item form-type-radio form-item-myformelem2"><br> <input type="radio" id="edit-myformelem2-0" name="myformelem2" value="0" checked="checked" class="form-radio" /><br> <label class="option" for="edit-myformelem2-0">Option 1 </label><br> </div><br> <div class="form-item form-type-radio form-item-myformelem2"><br> <input type="radio" id="edit-myformelem2-1" name="myformelem2" value="1" class="form-radio" /><br> <label class="option" for="edit-myformelem2-1">Option 2 </label><br> </div><br></div><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>