title: How to check if multiple dialogs are open in Jquery?
body: <p>I noticed that I can open multiple tabs from different buttons/links. :)</p>
  
  <p>What i want to do is to be able to open a dialog box only if no other dialog box is opened.</p>
  
  <p>I can use an if statement and check for each id that has a dialog attached to it, but there are a lot of them in my page. </p>
  
  <p>I need some king of expression that <code>if (a dialog id open) {do not open $(this) dialog}</code> or <code>open $(this)dialog only if no other dialog is open</code>.</p>