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

Reply via email to