I want to prevent a submit button with onclick event from submitting:
$j(\'form#userForm .button\').click(function(e) { if ($j(\"#zip_field\").val() >
I believe there is an easier way:
$j('form#userForm .button').click(function(event) { // <- goes here ! if ( parseInt($j("#zip_field").val(), 10) > 1000){ event.stopPropagation(); } });