I want to do something like this. I have a link inside a parent and I want to change the background of the parent and the link both whenever I click on the link. Is it possible?
Here is my fiddle http://jsfiddle.net/x5m5m035/
a:active {
background-color: yellow;
}
div{
background-color: red;
}
So when I click on the link, parent's background color should also be yellow.
I am sorry if it is too silly to ask.
Thanks