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

multiple javascripts on a button not working

 
Rakesh Keerthi
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
below is the code that i used for multiple java scripts on a single button. but only any one is working when i disable the second one. please let me know how do i change me code to make it to work fine.



and the html is as below




Thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you are submitting the form and than expecting some other action to occur. Not going to happen.

Also use a switch case.

Eric

 
Rakesh Keerthi
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Eric: thank you Eric switch worked.
@Bear: sorry for the way i posted.
 
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
Rakesh Keerthi wrote:@Bear: sorry for the way i posted.

No need to be sorry. Posting code that's hard to read only hurts your own efforts to get help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic