Highlighting text in a div, which is loaded via AJAX
<p>I have a div element, which is loaded via AJAX. Once it's loaded, I want to highlight the text in it (the usual process, click your mouse and drag to highlight).</p>

<p>But since DOM is already loaded, the mouse related events are not registered for these new div's, right?</p>

<p>If I have a div like this</p>

<pre><code>&lt;div id="parent"&gt;&lt;/div&gt;
</code></pre>

<p>And after jQuery "get" call, it becomes</p>

<pre><code>&lt;div id="parent"&gt;
  &lt;div id="child"&gt;Hello this content is loaded via AJAX&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>How do I rebind the div "#child" to mouse-related events? And exactly which events do I rebind them to?</p>
