Я пытаюсь использовать errorPlacement из jQuery Validation DOCS :
$("#myform").validate({
errorPlacement: function(error, element) {
error.appendTo( element.parent("td").next("td") );
},
debug:true
})
Я хочу поместить ошибку перед недопустимым вводом, но это не работает:
$("#myform").validate({
errorPlacement: function(error, element) {
error.appendTo( element.parent("form").prev("input") );
},
debug:true
})
Любая помощь очень ценится!