• Post Reply Bookmark Topic Watch Topic
  • New Topic

get the form name  RSS feed

 
Gayatri Sinha
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a two forms

<form name="a" action="a.jsp" method="post">
.....
</form>

and one more form
<form name="b" action="b.jsp" method="post">
.....
</form>

and from these forms I am calling a javascript function that is written in a different file. In the function I want to get the name of the form "a" or "b".

Is it possible?

Thanks,
- Gayatri
Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gayatri Sinha:
from these forms I am calling a javascript function


I have no idea what you mean by this. How are you calling a javascript function "from a form"?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!