There will be scenarios where you want your html controls (say label, button, text box, drop down) to be disabled. The following code does the trick.
<input type="text" id="txtCustomerName" runat="server" />
$('#txtCustomerName').prop("disabled",true);
<input type="text" id="txtCustomerName" runat="server" />
$('#txtCustomerName').prop("disabled",true);
No comments:
Post a Comment