Check and process the div block after its loading
<p>In my HTML, one div block(whose id looks like kdsm_32532535) is dynamically created after about 15-20 seconds of dom loading. I want to style this block with javascript with below code. </p>

<pre><code>&lt;script type="text/javascript"&gt;
$(document).ready(function(){

if($("div[id^='kdsm_']").length &gt; 0){ 
  $(this).css({'margin':'20px','border':'1px dotted red;'});
}
  /* OR below code. None of them working :( */     
  $("div[id^='kdsm_']").css({'margin':'20px','border':'1px dotted red;'});
});
&lt;/script&gt;
</code></pre>

<p>If I would do this in document.ready, it will not work because this div block doesn't exist on DOM ready.</p>

<p>How do i check continuously within interval of fraction, whether this div block is loaded or not ?</p>
