go to: http://api.jquery.com/ and put "wrap" in the filter box

On Aug 20, 10:06 am, ldexterldesign <m...@ldexterldesign.co.uk> wrote:
> Yo guys,
>
> I need to wrap this chuck of HTML in a <div>:http://is.gd/2qatX
>
> Any thoughts?
>
> $(document).ready(function(){
>         $('<div class="scrollablePost">').insertBefore('.page-id-9 h2');
>         $('</div>').insertAfter('.page-id-9 .postmetadata');
>         });
>
> ...just pumps out <div class="scrollablePost" /> at both ends, as
> you'll see from the above screenshot.
>
> Thanks,
> L

Reply via email to