This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set action of form through javascript  RSS feed

 
Satyajit Bhadange
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.

I have drop down on my page.

Different action should be called based on drop down value.
Is it possible to achieve ?

Don't want to go through dispatch action way.

Thank you
 
Joe Ess
Bartender
Posts: 9425
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Satyajit Bhadange wrote:
Is it possible to achieve ?


Certainly. Have you tried to do it? What does your code look like?
 
Satyajit Bhadange
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


on chage of dropdown i am setting values like this
 
Joe Ess
Bartender
Posts: 9425
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Satyajit Bhadange wrote:


I sure hope that's a typo.

Satyajit Bhadange wrote:


I've never tried document.all. I have used

with success.
 
Satyajit Bhadange
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey

thanks for reply.

I tried it with



It worked.Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!