I have a Textbox where I need to disable or enable that on some Conditions.
var stat = "any interger"
if (statId != 1) {
$('#<%=txt1.ClientID %>').attr("disabled", "disabled");
}
else {
$('#<%=txtBQty.ClientID %>').attr("enabled", "enabled");
}
This one will work but after disable if the condition returns false also means It won't enable the textbox.