Click here to Skip to main content
15,920,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Using this code in IE works.

document.getElementById(buttonID).disabled = true;
document.getElementById(buttonID).style.display = 'block'

But in CHROME

document.getElementById(buttonID).disabled = true;

Doesn't work.

Anyone know how to make a button disabled in Chrome?
Posted
Updated 16-Feb-13 15:14pm
v2
Comments
Sergey Alexandrovich Kryukov 16-Feb-13 22:21pm    
How did you see that it is no disabled? Could you show a complete code sample?
Of course, documentation says this property is supported by Chrome.
—SA
GreenKhan 16-Feb-13 22:28pm    
Like I said, it JUST works, I didnt have to do anything. BASICALLY in IE the mouse POINTER changes its appearance so its easy to tell when the button is disabled, but in CHROME the mouse pointer didnt change (even though the button had been disabled) After clicking on it again it didnt do anything more than it was suppose to do, so I knew it was working.
Avik Ghosh22 16-Feb-13 23:47pm    
use Button1.Enabled = false; in cs page... it works every where...

1 solution

Well it appears that it DOES disable, BUT the pointer JUST doesnt change. Any idea how to change the pointer to not look like the button is clickable?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900