jquery disable button
snippet in javascript

How disable button jquery

user1019

$( "button" ).prop( "disabled", true );

jquery disable button

user6515

$('.class').prop("disabled", true);
$('#id').prop("disabled", true);

// As function
const disable = (id) => $(`#${id}`).prop("disabled", true);

jquery disable a button

user5488

$(selector).dialog();
$(selector).prop('disabled', true);

jquery disable button

user7382

function disable(i){
    $("#rbutton_"+i).prop("disabled",true);
}