I have the following div's on my page:
<div id="page1">
Some content
</div>
<div id="page2">
More content
</div>
<div id="page3">
Even more content
</div>
At the bottom of the page, I have two buttons Continue and Back - what I need to do is to show and hide the divs based on the users input.
By default page1 should be shown and the others are hidden, when the users clicks Continue'page2is shown andpages 1 and 3are hidden - if the user clicks theBackbutton thenpage1` is shown and the others are hidden and so on.
I'm having a complete mental block of how to implement this in jQuery - any and all help welcomed.