Reputation: 496
I have 6 sets of radio buttons, all independent of each other. Im using JQuery validation plugin to validate them(they are all required). However the validation only works on the first one the 'satisfaction' group. My validation code is here
jQuery(document).ready(function() {
$("#surveyForm").validate({
rules: {
satisfaction: {
required: true
},
responding: {
required: true
},
listening: {
required: true
},
solution: {
required: true
},
communication: {
required: true
},
professional: {
required: true
}
},
messages:{
satisfaction: {
required: "this"
},
responding: {
required: "is"
},
listening: {
required: "a"
},
solution: {
required: "test"
},
communication: {
required: "to"
},
professional: {
required: "see"
}
}
});
});
Any suggestions?
Upvotes: 0
Views: 3782