jQuery Tambahkan tombol dinonaktifkan
$("#button").attr("disabled", true);
Breakable Beetle
$("#button").attr("disabled", true);
//jQuery 1.6+ use:
$("#inputID").prop('disabled', true); //disable
$("#inputID").prop('disabled', false); //enable
//jQuery 1.5 and below use:
$("#inputID").attr('disabled','disabled'); //disable
$("#inputID").removeAttr('disabled'); //enable
$( "button" ).prop( "disabled", true );
$('#edit').click(function(){ // click to
$('.inputDisabled').attr('disabled',false); // removing disabled in this class
});
$('.class').prop("disabled", true);
$('#id').prop("disabled", true);
// As function
const disable = (id) => $(`#${id}`).prop("disabled", true);
function disable(i){
$("#rbutton_"+i).prop("disabled",true);
}