This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get parameter from another Form

 
Barry Andrews
Ranch Hand
Posts: 523
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anyone tell me if it is possible to get a parameter from another Form (on the same HTML page) and submit the values along with the Form that is being submitted? For example, I have a text field in Form 1 (same page) and I want to be able to get the value of the field and submit that along with data from Form 2. There should be a way to do this task with JavaScript. If someone could kindly point the way?
Many thanks,
Barry
 
Shubhrajit Chatterjee
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In form one, have a hidden field say ... hid1
then do this from javascript
document.form1.hid1.value = dcoument.form2.someinputfield.value
 
Barry Andrews
Ranch Hand
Posts: 523
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brilliant! Thanks a lot!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic