I’ve built a sliding DIV with a few anchors that when clicked I want to show their corresponding DIV.
When you click operations, however, it’s a bit buggy. Surely there’s a better way to do this? I dont think I’ve built it very well, so can anybody suggest impovements, or make it so that when one item is clicked the others are hidden?
At first I need the financial DIV showing which is providing to be a pain…
I would suggest that you create a variable that would hold what is currently displayed. Upon clicking on a tab, it will hide the current one, show the new one, then set the new one as the current one.
I’ve modified your fiddle to demonstrate it: http://jsfiddle.net/t0nyh0/MZNyC/20/