我的页面上有以下内容div:
<div id="page1">
Some content
</div>
<div id="page2">
More content
</div>
<div id="page3">
Even more content
</div>
在页面底部,我有两个按钮Continue-Back我需要做的是根据用户输入显示和隐藏 div。
默认情况下page1应该显示,其他的都是隐藏的,当用户点击Continue'page2时,is shown and第1页和第3页显示are hidden - if the user clicks theBack button thenpage1`,其他的都是隐藏的,依此类推。
我对如何在 jQuery 中实现这一点有一个完整的心理障碍——欢迎任何和所有帮助。