点击事件使按钮不可用

时间:2022-11-03 14:17:42
 

<script type="text/javascript">
    function fun()
    {
    if(document.getElementById("subqqq").checked)
    {
     document.all.commit.disabled = "";
    }
    else
    {

 document.all.commit.disabled = "disabled";
    }
    }

</script>

 <input tabindex="3" type="checkbox" value="1" name="subqqq" id="subqqq" class="f-check" checked="checked" onclick="return fun();" />
<input type="submit" value="同意《连卡佛用户协议》并注册" name="commit" id="signup-submit" class="formbutton"  />