css to disable a button code example
Example 1: style disabled button
button:disabled,
button[disabled]{
border: 1px solid #999999;
background-color: #cccccc;
color: #666666;
}
Example 2: css disable button click
button.disabled{
pointer-events: none;
}