xxxxxxxxxx
// Add disabled attribute to an element with id "myElement"
$('#myElement').prop('disabled', true);
xxxxxxxxxx
// Add disabled attribute to an element using jQuery
$(element).prop('disabled', true);
xxxxxxxxxx
// Using jQuery to add 'disabled' attribute to an element
$(selector).prop('disabled', true);
xxxxxxxxxx
// Disable a button with id "myButton"
$('#myButton').prop('disabled', true);
xxxxxxxxxx
// Remove disabled attribute from an element with id "myElement"
$('#myElement').removeAttr('disabled');