I have two texts that are hidden at first display:none
and if I click on object1 a text below it will appear, if I click on object2 another text will appear, but the first text disappears.
Then I can click on object1 again to make the second text disappear and the first appear.
But I can't get the texts to display:none;
again because I have to have an object selected now after clicking on one of them.
My question now is if there is a CSS code like:
If object1/object2 is clicked twice, text1 AND text 2 will be display:none
again like in the beginning.