How to find the div is loaded or not?
<p>i am using a plug-in to load the facebook in to my page. i need to adjust some padding within the loaded content. i can't use the css to do this, because the ajax loading that content finally.</p>

<p>so, i decided to do this using jquery, so i written a interval function to find that div with class loaded or not, once it loaded i need to apply my style. for this i wrote this function </p>

<pre><code>$(window).bind('load',function(){
    var faceBook = $('div').hasClass('connect_top');
    var faceInterval = setInterval(function(){
        if(faceBook.complete){
            faceBook.css({border:'1px solid red'});
            clearInterval(faceInterval);
        }
    },50)
});
</code></pre>

<p>but no luck, any one can help me to achieve this? </p>

<p>Thanks in advance!</p>
