jQuery: How do I wrap() a dynamically loaded element?
<p>I am skinning a 3rd party app that has no HTML natively.  It all comes back from an onLoad event and a bunch of ajax calls.</p>

<p>I added jQuery to the page.  I need to wrap() an element that is dynamically loaded. I can include a plugin if needed.</p>

<p>How do I do this?  Thanks.</p>

<p>UPDATE:
This works, but is there a better way?</p>

<pre><code>$(document).ready(function() {

(function() {
  var length = $(".applicationShell").length;

  var h = setInterval(function () {
    if ($(".applicationShell").length &gt; length) {
      length = $(".applicationShell").length;
      clearInterval(h);


      $(".applicationShell").addClass("test")

    }
  }, 100);
})();


});
</code></pre>
