css disable button
<button id="btnSubmit" class="btn-disable">Click</button>
<style type="text/css">
.btn-disable
{
cursor: not-allowed;
pointer-events: none;
/*Button disabled - CSS color class*/
color: #c0c0c0;
background-color: #ffffff;
}
</style>//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');
Also in CSS:
- css disable button
- html5 video hide progress bar
- css remove number input arrows
- css transparent background color
- css rotate
- css margin
- how to change the height of an image in css
- html element always on top
- css limit text length
- css multiple classes
- css no bottom ouline
- how to write css in html
- add space between flex items
- sass vs scss
- css how to stop screen from left and right
- css transform transition
- center with css
- :root css
- margin css
- css z index
- css content image
- how to change color of svg with css
- css round outline
- div scrollbar style