I have a weird issue. I've been using the validation plugin for several months and have never had this problem.
field1 validation works great no problems. regex is a custom validation rule that I wrote. field2 doesn't show the error message unless I'm debugging the javascript.
$("#myForm").validate({
errorPlacement: function(error, element) {
error.appendTo(element.closest('td').find('div.errorContainer'));
},
rules: {
'field1': {
regex: { param: urlRegex }
},
'field2': {
required: { param: true }
}
}
});