Using id of HREF to position dynamic data in a TD given diff. pages
<p>Is there a non-hackish way to append to or use some elem (noted by an id) and append to it but after it before a block element. Not sure how to explain this.</p>

<p>I have various pages. And I have to insert some data (that is generated via ajax). Now, this data is retrieved after the page is loaded and as such, I have to inject some content - but because the pages are different (I want to use a plugin so I can just drop it into these pages and boom - dynamic content is placed appropriately).</p>

<p>** EDIT ::: If there is text after the HREF, my <em>inserted</em> items must be after it (and subsequent br tag). I was thinking that perhaps I insert after the href up to the last block element (div) or if not, then bottom of the div (noted in last example).</p>

<p>for some pages, the layout is like this..</p>

<pre><code>&lt;td&gt;
  &lt;div&gt;
     &lt;a href="someurl" id="uniqueIDhere"&gt;monsters&lt;/a&gt;  come see this show!!&lt;br&gt;
     // span with content injected here
  &lt;/div&gt;
</code></pre>

<p></p>

<p>or</p>

<pre><code>&lt;td&gt;
  &lt;div&gt;
     &lt;a href="someurl" id="uniqueIDhere"&gt;monsters&lt;/a&gt;
     // span with content injected here
  &lt;/div&gt;
</code></pre>

<p></p>

<p>or</p>

<pre><code> &lt;td&gt;
     &lt;a href="someurl" id="uniqueIDhere"&gt;monsters&lt;/a&gt;
     // span with content injected here
 &lt;/td&gt;
</code></pre>

<p>or </p>

<pre><code>&lt;td&gt;
  &lt;div&gt;
    &lt;span&gt;
     &lt;a href="someurl" id="uniqueIDhere"&gt;monsters&lt;/a&gt; yo you yo yo yo&lt;br&gt;
    &lt;/span&gt;
     // span with content injected here
  &lt;/div&gt;
</code></pre>

<p></p>

<p>So, that href could be wrapped in a DIV or a SPAN or not.. but its always in a TD.. 
So, basically I want to inject my "new dynamic" data within the last div of the TD or if there is none, just at the end of the td (but still in it).</p>

<p>any ideas? I figure to use the href ID (should use this as there are a few links i Have to do this to), get the parent TD and then append to it in some fashion?</p>
