I am currently developing a login page in asp.net and have utilized a template from CodePen at http://codepen.io/andytran/pen/PwoQgO
It is my understanding that an asp.net page can only have one form tag with runat="server". However, I need to incorporate code behind functionality into two form tags.
<form runat="server" visible="true" id="form1">
.....
</form>
<form runat="server" visible="false" id="form2">
........
</form>
I have a div tag that serves as a toggle button:
<div class='switch' onclick="show();" >
<i class='fa fa-pencil fa-times' onclick="show()"></i>
Here is the JavaScript being used:
function show()
{
document.getElementById("form2").style.visibility = "visible";
}
Unfortunately, this code is not functioning as expected. Any assistance would be greatly appreciated.