I'm trying to implement a function that will disable the cmdButton7
when checkbox checkMultiple
is checked. and enable it again when sum = 100
using vbscript , asp.net.
I tried the method below:
Sub disableButton()
If document.form1.Multiple.value = 1 Then
document.form1.cmdButton7.enabled = False
ElseIf sum = 100 Then
document.form1.cmdButton7.enabled = true
End If
End Sub
<input type="checkbox" name="checkMultiple" id="Multiple" onclick="disableButton">Multiple</input>
But I get this error:
object required "disableButton"