Brilliant! Works wonderfully.
On Jun 1, 1:49 pm, Jason Huck <[EMAIL PROTECTED]> wrote: > Here's one way, no "last" class required, though it probably could be > improved upon: > > $($('p').get(3)).before($('p:last')); > > - jason > > On Jun 1, 9:02 am, swortis <[EMAIL PROTECTED]> wrote: > > > Hi all- > > > I suspect this is ridiculously easy.. but I'm lost.. > > > I'm looking for a jquery way of taking the last paragraph (with > > class="last") of a many paragraph page and 'inserting' it just before > > the fourth paragraph (which does not have a class). > > > So: > > > <p>something</p> > > <p>something</p> > > <p>something</p> > > <p>something</p> > > <p>something</p> > > <p class="last">something</p> > > > Is actually seen as: > > > <p>something</p> > > <p>something</p> > > <p>something</p> > > <p class="last">something</p> > > <p>something</p> > > <p>something</p> > > > Anyone have a cool way of doing this? > > > Thanks! > > > -S