【发布时间】:2011-03-28 22:03:40
【问题描述】:
我注意到我可以从不同的按钮/链接打开多个标签。 :)
我想做的是只有在没有打开其他对话框的情况下才能打开一个对话框。
我可以使用 if 语句并检查每个附加了对话框的 id,但我的页面中有很多。
我需要if (a dialog id open) {do not open $(this) dialog}或open $(this)dialog only if no other dialog is open这样的表达之王。
【问题讨论】:
-
您使用的是什么对话框? jQuery 用户界面?
标签: jquery if-statement dialog