0
$('#webForm').validate({
rules : {
chos: {
required : true,
},
},
messages : {
chos: "Please select radio button" ,
},
});
});
<input type="radio" name="chos" value="phone"/>
<input type="radio" name="chos" value="email"/>
上記のコードは機能しません。私は上記のコードのためにラジオバートン検証が必要です。jqueryはラジオボタンを確認します
[jQueryの検証プラグインを使用してラジオボタングループの検証]の可能な重複(http://stackoverflow.com/questions/277589/validation-of-radio-button-group-using-jquery-validation -plugin) –
srryが私のために働いていません..plz help – reju