*
The moose likes HTML, CSS and JavaScript and the fly likes button 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 "button" Watch "button" New topic
Author

button

phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
Can we disable save button using
document.frmmain.save.disabled = true
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
silly question: Did you try?
phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
Is it possible or not?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Try it and you will find that it is possible to do! LOL

If you find that you are having trouble, it maybe that you are calling it before the page has rendered. You can solve that problem by calling with the page onload event.

Sorry if I sound rude, but if you would have tried it you would not have had to ask this question!!

Eric
phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
I have tried it, but it is not doing.
What is the other possible solution?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
quick example:



Hope this helps

Eric
phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: button
 
Similar Threads
How to make circle?
WA #1.....word association
Can you guess what this is?
redirect, foreward
get value from radio button