I have documents that have 2 or more forms in them.The number of forms varies.
I am trying to create a common validation function for some of them.
My question is , how can I get the form name from within the form.
I need to pass the form name as a parameter
e.g.
<form name="one" action="someplace" method="post">
some code
</form>
</form name="two" action="someplace2">
<input type="button" onClick="javascript:myfunction('need the formname here')">
</form>
I am trying to create a common validation function for some of them.
My question is , how can I get the form name from within the form.
I need to pass the form name as a parameter
e.g.
<form name="one" action="someplace" method="post">
some code
</form>
</form name="two" action="someplace2">
<input type="button" onClick="javascript:myfunction('need the formname here')">
</form>