I’ve got 2 images, Image_A and Image_B. I also have 2 Div’s, Div_A and Div_B which are both hidden when page loads.
If Image_A is clicked, then I need show Div_A. But ig Image_B is then clicked I need to hide Div_A and show Div_B.
This should work the other way also, so there is only ever one div showing if an image is clicked
Can this be achieved with pure css only? Or if I do it in Javascript/Jquery???
Thanks
you may set your css as;
and in your JavaScript;
Here is a working demo.