How do I bind a "data appended" event in js / jquery?
<p>At the moment, I have a piece of code looking like this:</p>

<pre><code>$("#somediv").append(data);
somethingToDoAfterDataAppended();
</code></pre>

<p>It seems that the data is appended asynchronously, therefor the next function is not necessarily invoked after data is actually appended.</p>

<p>I was thinking about a way to bind this function with 'data appended' event - is it possible?</p>

<p>Any other solution would be equally useful.</p>
