Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 3
    I'm upvoting the other two for actually using PHP to fix the problem, but seriously, DOM element wrapping like this is pretty easy in jQuery, requires little effort on your part, and allows you to more tightly focus the areas to be "altered" if you suddenly decide that ... for instance, header images ... don't need to be selected. I'm not saying mine is necessarily the way to go, but just pointing out that there are some benefits to the awkward solution. Commented Dec 16, 2010 at 2:17
  • Related: jQuery Commented Jul 22, 2016 at 21:07