I would like to use jQuery to wrap sets of class elements in a div but can\'t find the solution.
div
HTML:
Or here is the very short dynamical solution:
$(".view-content > div").each(function() { $(".view-content > ." + this.className).wrapAll(""); });
DEMO: http://jsfiddle.net/CqzWy/