(jquery tab ui) how to prevent unlimited jquery tab creation
<p>I created this site that uses jquery ui tabs for its navigation interface with this particular draggable tab plugin:</p>

<p><a href="https://jsfiddle.net/lifeto/ryhzwkph/16/" rel="nofollow">https://jsfiddle.net/lifeto/ryhzwkph/16/</a></p>

<p>And notice how the tabs can be opened unlimited times when you click multiple times on the 'menu1'.</p>

<p>i would like to limit the number to 1 but i don't just want to write a code that limits the opening, but rather i want to give the each tab a unique id, so that as long as the id is still there in the opened tabs, it won't reopen the same menu.</p>

<p>What i am trying to do with the jquery ui tab is that, basically making a program bar you can find on the windows system or dock in the mackintosh, where a program gets opened on demand, and be 'highlighted' when it's opened, won't get opened again when the same software is still opened, and finally, switch back to the already opened program window when i click on that program, while im working on the other software.</p>

<p>I am not sure if i put everything under clear context, but those are the things that i would like to see and implemented.</p>

<p>can anyone help me out?</p>

<p>here is the js script that i use for the tabs, </p>

<pre><code>$(function() {
  $(".tabpanel").tabs({
      closable: true,
      addTab: true
    }).tabs('overflowResize')
    .find(".ui-tabs-nav").sortable({
      distance: 10
    });
});


jQuery('.menu_a').on('click', function() {
  jQuery('.tabpanel').tabs('add', 'title', '&lt;iframe frameborder=0     src=naver.com class=frame_board&gt;&lt;/iframe&gt;')
});
</code></pre>

<p>thanks.</p>

<p>and just in case here is the live site that has problem : <a href="http://lifeto.cafe24.com/xe/" rel="nofollow">http://lifeto.cafe24.com/xe/</a></p>