I have 2 element Buttons and I want to change the color of one when I click another, and vice versa. I tried It, but don't work. Can anyone help Me? HTML:
<button id="t1">Test 1</button>
<button id="t2">Test 2</button>
CSS:
#t1:active + #t2
{
color: red;
}
#t2:active + #t1
{
color: red;
}