Problem in submiting 2 forms with one function?
<p>I have facing problem to submit two form whit one javascript function..</p>

<p>In that I have called one ajax file to check the username availability.</p>

<p>The forms are as below</p>

<pre><code>&lt;form action="abc.php" method="post" enctype="multipart/form-data" onsubmit="return isValid(this)" class="login_form" style="width:100%;"&gt;  

&lt;form action="http://xyz.com" method="post" enctype="multipart/form-data" onsubmit="return isValid(this)" class="login_form" style="width:100%;" name="form1" id="form1"&gt;  
</code></pre>

<p>In isValid() function when i do </p>

<pre><code>    alert ("hi");
    document.form1.submit();
    alert("bye");
</code></pre>

<p>Then it submiting the form1 else it does not.</p>

<p>Please help me..</p>

<p>Thanks in advance.</p>

<p>Kanak</p>
