I have chosen dropdown on page. I use jquery validation plugin to validate the field. But when changing the chosen dropdown validation is not being fired. Also is there any method to add error class in chosen dropdown. fiddle
$('.chosen').chosen()
$.validator.setDefaults({
submitHandler: function() {
return false
},ignore: ":hidden:not(select)"
});
$("#myform").validate({
onfocusout: function (element) {
$(element).valid();
},
rules: {
country:"required"
},
messages: {
country:"please choose country"
}
});