If you want to change the CSS by using JavaScript then this code will help.
getelementbyid is very handy!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<script> function disablebutton() { document.getElementById("submitboard").disabled = true; alert("Please update board name first"); document.getElementById('submitboard').style.display = "none"; } </script> //OR onclick="this.style.display = 'none' |
Look here if you want to change CSS with Jquery