Answers for "enable button"

9

How disable button jquery

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

javascript disable button

//disable the button
document.getElementById(BUTTON_ID).disabled = true;
//reable the button
document.getElementById(BUTTON_ID).removeAttribute('disabled');
Posted by: Guest on September-22-2020
18

javascript how to disable a button

//Using Javascript
//Disabling a html button

document.getElementById("Button").disabled = true;
//Enabling a html button

document.getElementById("Button").disabled = false;


//Using jQuery
//Disabling a html button

$('#Button').attr('disabled','disabled');
//Enabling a html button

$('#Button').removeAttr('disabled');
Posted by: Guest on November-28-2019
0

jquery enable submit button

//jQuery 1.6+ use:
$("#submitButtonID").prop('disabled', true); //disable 
$("#submitButtonID").prop('disabled', false); //enable

//jQuery 1.5 and below use:
$("#submitButtonID").attr('disabled','disabled'); //disable 
$("#submitButtonID").removeAttr('disabled'); //enable
Posted by: Guest on July-26-2019
5

jquery disable button

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

enable html button

$('#Button').prop('disabled', true);
Posted by: Guest on May-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language