Error with a href click
<p>I have a problem to share with you guys..In my page I have different tabs that was created by some method, before moving onto another tab i need to do some validations, but the problem is when i click next tab the page is submitted before going to my validation check even though they check the validation script is executed but because of the page is submitted first it's moving to the next tab.How can i prevent moving to next tab if validation is false.</p>

<p>Code for a href click: </p>

<pre><code>&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;
</code></pre>

<p>code for actual click function</p>

<pre><code>if (null !== document.forms[formName]) {
    document.forms[formName].elements['__goto'].value = gotoIndex;
    document.forms[formName].submit();
    return false;
}
</code></pre>

<p>I can't modify these scripts because this is a general script and created by some other team memeber.I am using jquery for validation.</p>

<p>Thanks
Alex</p>
