 <p>You could use <code>break;</code> but if you do you can't check return values (use <code>return;</code> or <code>return $bool;</code> for that).</p> <p>I think a construction like this would do:</p> <pre><code>.submit(function () { if (verifyInput()) { // continue } else { // show user there is something wrong } }); </code></pre> <p><code>verifyInput()</code> in this case would return a boolean, of course, representing wether or not the form was properly filled.</p>