$("#button").attr("disabled", true);

jquery add disabled to button

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

How disable button jquery

$('#edit').click(function(){ // click to $('.inputDisabled').attr('disabled',false); // removing disabled in this class });

jquery remove disabled property from button

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

jquery disable button

//for a class $('.inputDisabled').prop("disabled", false); //for a ID $('#inputDisabled').prop("disabled", false);

jquery button remove disabled attribute

$("#edit").click(function(event){ event.preventDefault(); $('.inputDisabled').prop("disabled", false); // Element(s) are now enabled. });

jquery remove disabled property from button

Similar Code Examples