title: jQuery UI tabs example - opening new tab = adding unique script to each tabs
body: <p>This is jQuery tabs script: <a href="http://jqueryui.com/demos/tabs/#manipulation" rel="nofollow">http://jqueryui.com/demos/tabs/#manipulation</a></p>
  
  <pre><code>        var $tabs = $( "#tabs").tabs({
              tabTemplate: "&lt;li&gt;&lt;a href='#{href}'&gt;#{label}&lt;/a&gt; &lt;span class='ui-icon ui-icon-close'&gt;Remove Tab&lt;/span&gt;&lt;/li&gt;",
              add: function( event, ui ) {
                  var tab_content = $tab_content_input.val() || "Tab " + tab_counter + " content.";
                  $( ui.panel ).append( "&lt;p&gt;" + tab_content + "&lt;/p&gt;" );
              }
          });
  
  // rest of script
  </code></pre>
  
  <p>So, what's I need? I need to script will be setting (with other content) on line var tab_content = . Normally (in script with static tabs) my own script is loading on the bottom of page (i was create a few instance of the same script like (founction(script1), founciton(script2) and 2 divs with id script1 and script2), after all HTML code, but in this case I don't know how to do this. I need to script be unique for each tabs.</p>