I want to prevent a submit button with onclick event from submitting:
$j(\'form#userForm .button\').click(function(e) { if ($j(\"#zip_field\").val() >
Basically, if you change your button type from type="submit" to type="button", such button won't submit form, and no workarounds are needed.
type="submit"
type="button"
Hope this helps.