title: Jquery tab not updating CSS properly when adding new tab
body: <p>I am trying to create a new tab that will allow for you to see content in the tab and choose between the tabs, Currently when i add a new tab it does not allow me to switch between tabs and breaks the other tab. I have found this to be due to the CSS not refreshing and loading inside the new tab div. What do i need to do to ensure that the new div has the css for the Tab.</p>
  
  <pre><code>function addGroup() {
  tabcount++;
  document.getElementById('tab').innerHTML += '&lt;li&gt;&lt;a href="#tabs-'+tabcount+'"&gt;Aenean lacinia&lt;/a&gt;&lt;/li&gt;';
  document.getElementById('tab-content').innerHTML += '&lt;div id="tabs-'+tabcount+'"&gt;&lt;h2&gt;Content heading 3&lt;/h2&gt;&lt;p&gt;Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.&lt;/p&gt;&lt;/div&gt;';
  </code></pre>
  
  <p>Im using Jquery 1.11 aswell and tried looking at their documentation but did not notice documentation on how to add tabs.</p>