Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes multiple javascripts on a button not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "multiple javascripts on a button not working" Watch "multiple javascripts on a button not working" New topic
Author

multiple javascripts on a button not working

Rakesh Keerthi
Ranch Hand

Joined: Jul 16, 2012
Posts: 144
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Jul 16, 2012
Posts: 144
@Eric: thank you Eric switch worked.
@Bear: sorry for the way i posted.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multiple javascripts on a button not working