유효성을 검사 할 때 select 요소를 감싸는 div 클래스를 추가해야합니다.jQuery Validate의 invalidHandler 이벤트 사용
$("#Form").validate({
invalidHandler: function (form, validator) {
$("[id$='_DropDownList']").each(function() {
// How do I figure out if $(this) is valid or invalid?
// Add the class below if invalid.
$(this).parent().addClass("error");
});
}
});