Stop a javascript function inside a jquery?
<p>I want to cancel/stop a javascript function if some criteria is not matching in jquery</p>

<pre><code>&lt;div id="prewrapper"&gt;
    &lt;ul class="tabs seller"&gt;
        &lt;li class="active"&gt;
            &lt;a onclick="adc.FormHandler.goto('user_edit', 0); return false;" href="#"&gt;&lt;i data="1" class="icon-tab-num"&gt;&lt;/i&gt; General Info&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class=""&gt;
            &lt;a onclick="adc.FormHandler.goto('user_edit', 1); return false;" href="#"&gt;&lt;i data="2" class="icon-tab-num"&gt;&lt;/i&gt; Account Details&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class=""&gt;
            &lt;a onclick="adc.FormHandler.goto('user_edit', 2); return false;" href="#"&gt;&lt;i data="3" class="icon-tab-num"&gt;&lt;/i&gt; Roles&lt;/a&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<p>I check some validation in <code>$('#prewrapper').click(function (e){</code>, and if not valid I don't want to go href onclick function i.e., <code>adc.FormHandler.goto</code></p>
