如何根据 checked="checked" 特性向此单选按钮的 IMG 添加 CSS 样式?
<div id="edit-attributes-24-42-wrapper" class="form-item">
<label for="edit-attributes-24-42" class="option">
<input type="radio" class="form-radio" checked="checked" value="42" name="attributes[24]" id="edit-attributes-24-42">
<img class="radio_image" src="/sites/default/files/imagecache/radio_thumb/days-3.png">
<div class="radio_image_text">
Radio Button text, hidden by display:none in CSS
</div>
</label>
</div>
理想情况下,我想将样式类“选择”添加到<img class="radio_image" src="/sites/default/files/imagecache/radio_thumb/days-3.png">
代码部分。