I'm having a devil of a time doing something that would seem to be pretty basic.

I have a jQuery object with two elements, and I want to insert a new element in between them - not altering the DOM, but just the jQuery object.

So if my original jQuery object looks like this when logged in the console:
[ div1, div2 ]

I want it ultimately to look like this, inserting newdiv manually:
[ div1, newdiv, div2 ]

?????

-- Josh


Reply via email to