提交表单时如何折叠 jQuery 选项卡?
我有一个表单,用户可以通过打开一系列 jQuery 选项卡来输入信息。
当用户提交表单时,我想折叠所有打开的选项卡。我该怎么做?
注意:仅仅隐藏选项卡的内容是不够的。必须取消选择该按钮,并且必须以某种方式设置可见性,以便表单继续工作。我尝试只是说...
$(".content").hide();
...但此后选项卡的内容将无法正确显示。人们需要能够继续使用表单并一遍又一遍地提交它。感谢您能给我的任何帮助!
I have a form where users can enter information by opening a series of jQuery tabs.
When the user submits the forms, I want to collapse any open tabs. How do I do that?
NOTE: It's not enough just to hide the content of the tab. The button has to be deselected and the visibility has to be set in a way so that the form will continue to work. I tried just saying...
$(".content").hide();
...but the contents of the tab wouldn't display properly after that. People need to be able to keep working with the form and submitting it over and over. Thanks for any help you can give me!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)