How can I Enable And Disable Ajax Rating Control on CheckBox Check In JavaScript??
Currently I’m enabling and disabling Textbox on CheckBox Check In JavaScript in this way
function Del_Checked(DelEnabled) {
var DelStatus = document.getElementById("<%= cb_foodDelStatus.ClientID %>");
if (DelStatus.checked === true) {
document.getElementById("<%= tb_DelTime.ClientID %>").disabled = false;
}
else {
document.getElementById("<%= tb_DelTime.ClientID %>").disabled = true;
}
}
onclick = "Del_Checked(this.checked);" // Added this to Checkbox
you can set the Read only attribute of Ajax Rating control through jquery as: