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:
<form id="form1" role="form" method="POST" action="script1.php" onsubmit="return validateAccess()">
.....
</form>
<form id="form2" role="form" method="POST" action="script2.php" onsubmit="return validateLogin()">
.....
</form>