Return to Snippet

Revision: 28459
at July 8, 2010 17:29 by omerta83


Initial Code
//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");

Initial URL

                                

Initial Description

                                

Initial Title
Enabling or disabling form elements

Initial Tags
javascript, jquery

Initial Language
JavaScript