Javascript to make a component to dynamically follow another one
<p>I have a dynamically rendered div/span that needs to follow a particular component e.g. a textbox.  Currently it is set to a particular coordinate on the page and it is shown as appearing right beneath the textbox.  But it no longer appears that way when a div above the textbox gets collapsed/expanded (i.e. it goes above/under the textbox).</p>

<p>Think of it as a search result area appearing under a search result box after clicking the search button, but the search result area moved when a random div above the search text box collapsed/expanded.</p>

<p>I'm pretty sure that a bit of javascript would fix this.  I tried googling for it, but struggling to come up with decent keywords (and my search phrase didn't really return me much).</p>

<p>The div/span in question is rendered in jQuery dynamically.  I was wondering what does the quick solution look like?</p>

<p>Thanks.</p>
