How can I enable or disable button after check box checked and unchecked ? If user agree the terms and condition and then he checked check box after that button must be enable to user.
I use following code
example.chtml
<input id="termsandcondition" type="checkbox" value="false" onclick="if(this.value==true)this.btnsubmit.Enabled=true;else this.btnsubmit.Enabled=false;"/>
<input id="btnsubmit" type="submit" value="Register" class="cssLoginButton" disabled="disabled" />
But I am not able to enable or disable button. Is there any change in my code?
This should do the trick: