/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//To disable a form element such as a text input field $("#myelement").attr("disabled", "disabled"); //To re-enable a disabled form element $("#myelement").removeAttr("disabled");