title: Twitter Bootstrap - Dynamically Add/Remove Tabs and Tab Content
body: <p>Thanks in advance for any and all input/help/advice...</p>
  
  <p>I'm using Twitter Bootstrap tabs to organize some information. The tabs will be located on a form page, and each tab will consist of a "contact form", in which the user can add multiple contacts to this page prior to submitting the whole form. </p>
  
  <pre><code>&lt;div class="container"&gt;
      &lt;ul class="nav nav-tabs"&gt;
          &lt;li class="active"&gt;&lt;a href="#contact_01" data-toggle="tab"&gt;Joe Smith&lt;/a&gt;&lt;span&gt;x&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#contact_02" data-toggle="tab"&gt;Molly Lewis&lt;/a&gt;&lt;span&gt;x&lt;/span&gt; &lt;/li&gt;
          &lt;li&gt;&lt;a href="#" class="add-contact" data-toggle="tab"&gt;+ Add Contact&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
      &lt;div class="tab-content"&gt;
          &lt;div class="tab-pane active" id="contact_01"&gt;Contact Form: Joe Smith&lt;/div&gt;
          &lt;div class="tab-pane" id="contact_02"&gt;Contact Form: Molly Lewis&lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Full code here: <a href="http://jsfiddle.net/Harlow/zQnck/34/" rel="noreferrer">http://jsfiddle.net/Harlow/zQnck/34/</a></p>
  
  <p>I'm trying to mimic the functionality of jQuery UI's "simple manipulation" example of tabs.
  (<a href="http://jqueryui.com/tabs/#manipulation" rel="noreferrer">http://jqueryui.com/tabs/#manipulation</a>)</p>
  
  <p>What I currently have will add a new tab, but I want to be able to add a new, unique tab with it's own ID (continuing from the code, like "contact_01, contact_02, etc.") by clicking on the "+ Add New Contact" which will always be the last tab, but not actually have it's own tab content pane. On the other side of dynamically adding content, I want to be able to delete it by click the small "x" on each tab. </p>
  
  <p>--EDIT--</p>
  
  <p>Just to clarify, the jQuery example trigger's a modal upon clicking "New Tab". For my purposes, I just want to create a new tab without inputting the tab name or content (the content will always be the same contact form, and I'm fine with the tab name being the same as the newly generated ID - I will have it automatically update to the contact's name later.) </p>