Answers for "disable and enable button css"

19

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

css disable button click

button.disabled{
  pointer-events: none;
}
Posted by: Guest on January-21-2021
3

css for disabled button

/* CSS Selectors for CSS2 and CSS3 both */
button:disabled,
button[disabled]{
  border: 1px solid #999999;
  background-color: #cccccc;
  color: #666666;
}
Posted by: Guest on April-04-2021

Code answers related to "disable and enable button css"

Code answers related to "Javascript"

Browse Popular Code Answers by Language