开发者

How to disable button when checkbox is checked.vbscript

How to disab开发者_运维知识库le button when checkbox is checked and enable it when a condition is met using vbscript.


i tried the method but i got the object required "checkMultiple" error. Sub disableButton() If checkMultiple.value = 1 Then document.form1.cmdButton7.enabled = False ElseIf sum = 100 Then document.form1.cmdButton7.enabled = true End If End Sub

Multiple


Sub disableButton()  
  If checkMultiple.value = 1 Then  
    document.form1.cmdButton7.enabled = False 
  End If  
End Sub


Sub enableButton()  
    document.form1.cmdButton7.enabled = False 
End Sub  


<input type="checkbox" name="checkMultiple" id="Multiple" onclick="disableButton()">Multiple 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜