I have two divs that I want to “switch” when I click each button.
The best way to show you is this example here.
I have the layout I want and the functionality almost there, but instead of one div being placed on top of the other (I’ve used position: absolute; to have them in the same “space”) I want them to “switch out” as I press the buttons.
Is this possible?
Thanks.
You can bind them all with one concise function, taking advantage of
.index():http://jsfiddle.net/gilly3/dyXY4/12/