Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get the name of the form in javascript

 
kay lin
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all:
suppose i have the following code



now, in my javascript, what properties should i use to display the name of the form, namely in this case , it is "frm1"

document.forms[i].name or document.forms[i].value? i tried both, but neither seems to get me "frm1"...

Please do let me know...

Many thanks...
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic