Attach ui-widget to dynamic element

Attach ui-widget to dynamic element

When dynamically creating a div using an .ajax() function.  I'm unable to attach the .tabs() widget to the newly created <div>.

This link creates the new div and pulls the #tabs div from "somefile.php"
  1. <a href="newdiv">Creates New Div</a>

  1. <div id="newdiv">
  2.       <div id="tabs">
  3.            <ul>
  4.                  <li>Example One</li>
  5.                  <li>Example Two</li>
  6.           </ul>
  7.       </div>
  8. </div>

Here is the script I'm using. Output - Error: (d || "").split is not a function
  1. $( "#tabs" ).live(function(){
        $(this).tabs()
    });




I'm able to show the tabs when adding an event parameter, However I want the tabs to display without an event.
  1. $( "#tabs" ).live("click", function(){
        $(this).tabs()
    });

Someone please help me understand what I'm missing.  I've been stuck on this for 3 days.

Chris