在Chrome中使用JavaScript禁用按钮。 [英] Making a button disabled using JavaScript in Chrome.

查看:346
本文介绍了在Chrome中使用JavaScript禁用按钮。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IE中使用此代码。



document.getElementById(buttonID).disabled = true;

document.getElementById(buttonID ).style.display =''block''



但是在CHROME



document.getElementById( buttonID)。disabled = true;



不工作。



任何人都知道如何制作在Chrome中禁用了一个按钮?

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?

推荐答案

好吧它似乎禁用了,但指针JUST没有改变。知道如何更改指针看起来不像按钮是可点击的吗?
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?


这篇关于在Chrome中使用JavaScript禁用按钮。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆