jQuery: How do I wrap() a dynamically loaded element? -


I'm skinning the third-party app in which HTML is not originally all from the on-load event and AJAX Returns from a group of calls.

I added jQuery to the page. I need to wrap a dynamically loaded element (if necessary) I can include a plugin.

How can I do this? Thank you.

Update: This works, but is there a better way?

  $ (document) .ready (function () {(function () {var length = $ (". ApplicationShell") length; var h = setInterval (function () {if ($ ("ApplicationShell") Length & gt; Length) {length = $ ("Application Shell"). Length; Clear Interval; $ (".App Shell") AddClass ("Test")}, 100) ;}) ();});  

OK, it seems I can not find a better solution :( here The one that I have used.

  $ (document) .ready (function () {(function () {var length = $ (". ApplicationShell"). Length; var h = SetInterval (function () (if ($ (". Application.Shell"). Length & gt; Length) {length = $ (".App shell") Length; Clear interval (h); $ (".App shell "). AddClass" test ")}}, 100);}) ();});  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -