Jquery ui tab-wise 验证
我正在使用 UI 选项卡,并且我想验证每个选项卡。
当我单击第二个选项卡时,我必须验证第一个选项卡。如果选项卡有效,则转到第二个选项卡,如果选项卡无效,则留在当前选项卡并填写缺少的表单元素。对于我的所有选项卡,依此类推。
谁能帮我解决这个问题。
I am using UI tabs and i want to validate each tab.
When I click the second tab i must validate the first tab.If tab is valid go to second tab, if tab is not valid stay to the current tab and fill in missing form elements.And so on for all my tabs.
Can anyone help me with this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在选项卡的
select
事件上验证表单。如果在该事件中返回 false,则选项卡将不会更改..如下所示:
validate the form on the
select
event for the tab. if you return false in that event then the tab will not be changed..as follows :