The following code does work in FF. I am trying to set the checkbox to enabled with the enable button. The enable checkbox does not work in IE 9?
function enablebut() {
$('#CheckBoxList1_0').removeAttr("disabled");
$('#CheckBoxList1 span').removeAttr("disabled");
}
function disablebut() {
$('#CheckBoxList1_0').attr("disabled", true);
$('#CheckBoxList1 span').attr("disabled", true);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<button type="button" onclick="enablebut();">
enable</button>
<button type="button" onclick="disablebut();">
disable</button>
<div>
<asp:CheckBoxList ID="CheckBoxList1" Enabled='false' runat="server">
<asp:ListItem Text="een"></asp:ListItem>
</asp:CheckBoxList>
</div>
</form>
</body>
</html>
cant you use the same code
just change the parameter to
false.