I have the following code which is working fine in firefox but ie just doesn’t want to know:
$("#termsandconditionscontinue").attr("disabled", "disabled");
$("#agreeTandC").click(function() {
var checked_status = this.checked;
if (checked_status == true) {
$("#termsandconditionscontinue").removeAttr("disabled");
}
else {
$("#termsandconditionscontinue").attr("disabled", "disabled");
}
});
Here is the example: http://jsfiddle.net/zidski/LXGMu/
The problem can lie in
Change it to:
to make sure you use proper jQuery object which is cross browser compatible.