Answers for "set disabled with class"

CSS
2

disable whole div bootstrap 4

$("#mydiv").addClass("disabledbutton");
.disabledbutton {
    pointer-events: none;
    opacity: 0.4;
}
Posted by: Guest on June-06-2020
2

style disabled button

button:disabled,
button[disabled]{
  border: 1px solid #999999;
  background-color: #cccccc;
  color: #666666;
}
Posted by: Guest on June-16-2020

Browse Popular Code Answers by Language