I'm using javascript and html, here is my code, not exact code, the form body is pretty big so I am not sharing it:
Problems I'm facing:
- Page refreshes when I submit the form.
- I have 2 forms in my page and "return false" works on the 1st from but not on the 2nd.
HTML
<div class="col_8 signin" id="s1">
<form name="sigin" onsubmit="login(); return false" method="post">
//FORM CONTENT//
</form>
</div>
<div class="col_8 signup" id="s2">
<h1>SIGN UP</h1>
<form name="sigup" onsubmit="submit(); return false" method="post">
//FORM CONTENT//
</form>
</div>