Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get the form name

 
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
Pie
Posts: 65218
95
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"?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic