[jQuery] [validate] submitHandler not working
for some reason submitHandler doesn't seem to trigger... this is what
I have:
var container = $('div.errors');
// validate the form when it is submitted
var validator = $("#newclient").validate({
success: "valid",
errorContainer: container,
errorLabelContainer: $("ol", container),
wrapper: 'li',
meta: "validate",
submitHandler: function(form) {
alert("submitted!");
//going to insert more code here
form.submit();
}
});
whenever I submit the form it just validates and then goes directly to
my php code... any ideas why it's doing that?
using latest version: 1.4