JQuery Dodaj wyłączone do przycisku
$("#button").attr("disabled", true);
Breakable Beetle
$("#button").attr("disabled", true);
$( "button" ).prop( "disabled", true );
$('.class').prop("disabled", true);
$('#id').prop("disabled", true);
// As function
const disable = (id) => $(`#${id}`).prop("disabled", true);