Tuesday, January 16, 2018

Login

Don't have an account yet? Register now!

Create an account

Fields marked with an asterisk (*) are required.

Radio buttons validation Problem

Keith
Keith
Offline
0
I've got a problem with the client side validation of a jform
<field name="radioname" type="radio" class="required"
label="Please Select Gender" >
<option value="M">Male</option>
<option value="F">Female</option>
</field>

has no validation occurring.

Accepted Answer

Steve
Steve
Offline
Wednesday, January 15 2014, 05:18 PM - #permalink
0
remove class=” required” from field name and just add the class="required" on the option.
i.e. <field name="radioname" type="radio"
label="Please Select Gender" >
<option value="M" class=”required”>Male</option>
<option value="F" class=”required”>Female</option>
</field>
The reply is currently minimized Show
Responses (0)
  • There are no replies here yet.
Your Reply