Enable, disable a form element with jQuery.

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