[jQuery] Re: Injecting tags to specific location.

2009-07-17 Thread James
I think something as simple as this should work: $(#maincontent, #left, #right).each(function() { var content = $(this).html(); $(this).html('div class=inject1div class=inject2div class=inject3'+content+'/div/div/div'); }); Might get a bit more complicated if there are other javascript

[jQuery] Re: Injecting tags to specific location.

2009-07-17 Thread Charlie
try this: $("#maincontent, .left , .right").prepend('div class="inject1"div class="inject2"div class="inject3"'); $("#maincontent, .left , .right").append('/div/div/div'); pennfoli0 wrote: Hi, My CMS won't let me customize their HTML structure they didn't give me access to their