Hello,
I didn't find a way to add a class to a form element.
See this form item:
<label class="option"> <input type="radio" name="ballot[17]" value="0" checked="checked" class="form-radio" />I like</label>
I would like to be able to theme this radio button and its label according to the value and to whether it is checked or not.
In the module, I'd like to be able to add the class name to the label when the option is checked, this way: <label class="option value-0-checked">
Is there a way to do that?
thanks for your help.
augustin.