aspose file tools
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
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 103
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: 15357
    
    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: 103
@Eric: thank you Eric switch worked.
@Bear: sorry for the way i posted.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56233
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multiple javascripts on a button not working
 
Similar Threads
Not able to retrive the Value sent through JavaScript function
Compare textbox data with sql table data
Oracle table takes Null
using multiple submit buttons
Display div's based upon selection of radio Buttons.