按钮可不用不可用的问题
<input type="button" id="Button1"" />
<input type="button" id="Button2" onclick="bbb()" />
<input type="button" id="aa" onclick="aaa()" />
<input type="text" id="bb" onchange="bbb()"/>
</div>
</form>
<script type="text/javascript">
function aaa() {
alert("123");
document.getElementById("Button1").disabled = "false";
}
function bbb() {
alert("1234");
document.getElementById("Button1").disabled = "true";
};
</script>
为什么可以设置其为不可用户!但是要设置回来就不行了
------解决方案--------------------
JScript code
function aaa() {
alert("123");
document.getElementById("Button1").disabled = "";
}
function bbb() {
alert("1234");
document.getElementById("Button1").disabled = "true";
};