If I do this
var domElement = $("#id");
and the returned element is a div tag,
How can I then do something like
domElement.$('div a:nth-child(3)').after(somehtml);
This is an example where I want to add some HTML after the third link under that "domElement" div.
The above doesn't seem to work. I have numerous examples where I have already selected a certain element from the entire page HTML and I then want to work inside the "context" of that element.
In 90% of cases I want to continue jQuery selection, traversion and manipulation from a previously selected DOM element from a page not from the whole page like $(..) does.