Possible Duplicate:
Why does jQuery .after() not chain the new element?
This reference code:
$("#id").after(string);
Does a pretty good job inserting the element of the string where its need to.
How can I get a reference to newly inserted HTML element (string)?
string
reference what you've just insterted? – Frizzstring
, what is it that's expected/desired from this question? – Frizz