button disabled and enabled in jquery code example
Example 1: jquery add disabled to button
$("#button").attr("disabled", true);
Example 2: jquery button remove disabled attribute
//for a class
$('.inputDisabled').prop("disabled", false);
//for a ID
$('#inputDisabled').prop("disabled", false);
Example 3: jquery remove disabled property from button
$("#edit").click(function(event){
event.preventDefault();
$('.inputDisabled').prop("disabled", false); // Element(s) are now enabled.
});