how to add validation rules for radio,select and checkbox elements in dform with jquery.validation

24 views
Skip to first unread message

LendingKart Dev

unread,
Nov 17, 2015, 1:42:49 AM11/17/15
to jQuery dForm

{
      "name":"default2",
     "id":"select-default2",
"type":"select",
       "class":"form-control",
"options":{
            "0":"Select Please",
           "1":"value one",
               "2":"value two"
}
      ,
      "validate" : {
         "required" : true
      }
}
above did n't work for select, save for others like radio and checkbox. 

And how do we generate select element with no value.

Reply all
Reply to author
Forward
0 new messages