Reputation: 1204
How to perform validation radiobutton. failed to perform the radio button validation when use button type button
instead input type submit
.
Demo :
http://jsfiddle.net/05qm3r4m/63/
Upvotes: 0
Views: 1299
Reputation: 26288
Try this:
$(document).ready(function() {
$('#myform').validate({
rules:{
foobar :
{
required: true
}
}
});
});
There are so many issue with your code.
Updated Fiddle with custom message
Upvotes: 2