Hi,
I need to add a required class in gender radio button. How this can be done.
<td colspan="2">
<label for="stay_connected_form_gender">I am <span class="astris">*</span></label>
<%= f.radio_button :gender, 'm', :class => 'RadioInput' %>Male
<%= f.radio_button :gender, 'f', :class => 'RadioInput' %>Female
</td>
classname = required
If I am adding like this then it display two validation message for each radio button.
<%= f.radio_button :gender, 'm', :class => 'RadioInput required' %>Male
<%= f.radio_button :gender, 'f', :class => 'RadioInput required' %>Female
I need to get a single validation msg if none of the radio button is selected.
Thanks in advance .......