I want to prevent a submit button with onclick event from submitting:
$j(\'form#userForm .button\').click(function(e) {
if ($j(\"#zip_field\").val() >
Best way is to do everything inside your submit event handler of the form. Remove the inline onclick and run it inside the submit function
$j('#userForm').submit(function(e) {
if (+$j("#zip_field").val() > 1000){
alert('Sorry we leveren alleen inomstreken hijen!');
return false;
}
return myValidator(userForm, 'savecartuser');
});