Can i use multple onsubmit events on mupliple forms in one page : <p>I have 2 forms in one page and i need to call one function in js when i submit my forms. Can i use 2 onsubmit events in the same page? It not works in my code project.
For example:</p>

<pre><code>    &lt;form id="form1" role="form" method="POST" action="script1.php" onsubmit="return validateAccess()"&gt;
.....
    &lt;/form&gt;

    &lt;form id="form2" role="form" method="POST" action="script2.php" onsubmit="return validateLogin()"&gt;
.....
    &lt;/form&gt;
</code></pre>
