Tôi chỉ muốn tùy chỉnh errorPlacement
cho các trường nhất định và trì hoãn vị trí mặc định của plugin cho phần còn lại. Một cái gì đó như:Tùy chỉnh lỗi Xác thực của jQueryVị trí chỉ cho một số trường
errorPlacement : function(error, element) {
if($(element).prop("id") === "mySpecialField") {
$("#mySpecialErrorMessageHolder").append(error);
}
else {
// this is not valid syntax but it's what I really want...
super.errorPlacement(error, element);
}
}
Điều này có thể?