jquery disable a button
snippet in javascript

How disable button jquery

user9507

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

jquery disable button

user9992

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

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

jquery disable a button

user9421

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

jquery disable button

user6446

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