title: jQuery UI and loading data into a tab
body: <p>I'm using JQuery UI to create a tab, and I want to the contents of my php file to be entered into this tab. I start by creating a tab, and then selecting it. </p>
  
  <pre><code>function createTab2() {
         //create a tab
         $("#tabs").tabs("add","#tabs-2","Second Tab");
         $("#tabs-2").css("display","block");   
         $('#tabs').tabs('select', "#tabs-2");        
         $.get('tab2.php', function(data) {
              $('.result').html(data);
              alert('Load was performed.');
          });
  }
  </code></pre>
  
  <p>I tried using the JQuery <code>.get</code> function to return the data and it works fine as an alert appears. However, the contents are not entered into the tab - I just see them listed in my Javascript console.</p>
  
  <p>How can I make the contents of the php file appear in this tab?</p>