I have tried for couple of days now to find a way to change the color of my button when clicked in javascript or PHP. I already have a button with the CSS: #btnMenu
.
This is the button:
<a href="/?nav=home"><input id="btnMenu" type="button" value="Hjem"/></a>
The button is: background-color: grey;
When it's clicked, I want the button to be: background-color: red;
I think that it can't be done in CSS but can I change the background i javascript og PHP?