Answers for "jquery disable button"

12

jquery add disabled to button

$("#button").attr("disabled", true);
Posted by: Guest on July-06-2020
11

jquery disable input

//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
Posted by: Guest on July-22-2019
9

How disable button jquery

$( "button" ).prop( "disabled", true );
Posted by: Guest on May-04-2020
5

jquery remove disabled property from button

$('#edit').click(function(){ // click to
            $('.inputDisabled').attr('disabled',false); // removing disabled in this class
 });
Posted by: Guest on September-14-2020
5

jquery disable button

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

// As function
const disable = (id) => $(`#${id}`).prop("disabled", true);
Posted by: Guest on August-14-2020
5

jquery disable button

function disable(i){
    $("#rbutton_"+i).prop("disabled",true);
}
Posted by: Guest on December-27-2019

Code answers related to "Javascript"

Browse Popular Code Answers by Language