如何阻止用户在 rich:tabPanel 的 Enter 选项卡上输入?
我的页面中有一个 rich:tabPanel,我想要的是阻止用户进入选项卡并说你是 不允许进入该选项卡。
我怎样才能在 jquery 和 javascript 中实现这一点。或丰富:也许是 jQuery?
另一个问题是如何使用原始 jQuery 或 javascript 禁用此选项卡? 我知道这是可能的。
我正在使用 richfaces 3 和 jsf 2。
谢谢。
I have a rich:tabPanel in my page, what I want is trap the user from entering a tab and say you are
not allowed to enter in this tab.
How can I achieve that in jquery and javascript. or rich:jQuery maybe?
Another question is how can I disabled this tab using raw jQuery or javascript?
I know this is possible.
I am using richfaces 3 and jsf 2.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
disabled
属性来禁用它,如果需要,您可以使用onclick
属性来显示一些警报。You can use the
disabled
attribute to disable it and you can if necessary use theonclick
attribute to show some alert.