I am using JQuery Validation plugin to validate my form. The validation messages for all the fields except radio button are showing properly below the respective field.But for radio button the messages are showing between first two radio buttons.
gender : {
required : true
}
<html:radio property="gender" value="1"
name="formBean" styleId="gender"> Male </html:radio>
<html:radio property="gender" value="0"
name="formBean" styleId="gender"> Female </html:radio>
Is there any way the error message shown after or below the radio buttons?
Thanks in advance.
<label for="formBean" class="error" style="display:none;">
. It might be, that you need "formBean": { required:true } as a rule instead of gender though. – Gutturalize