Clean up your code
$("#rateform").validate({
debug: true,
rules: {
stars: {
required: true,
min: 1
},
errorPlacement: function (error, element) {
console.log(element);
}
}
});
Is errorPlacement supposed to be in rules. Looking at the documentation, that is not how it seems to work.
$("#rateform").validate({
debug: true,
rules: {
stars: {
required: true,
min: 1
}
},
errorPlacement: function (error, element) {
console.log(element);
}
});