using jquery to group elements
<p>I've got a whole bunch of elements that I need to group, but because it's being spat out of some machinery which I can't alter, I need to do so using jquery (which I'm fairly familiar with the basics of)</p>

<p>Basically I've got a load of p tags and divs loose inside a form element (yes bad markup, but that's another story). I need to group the p tags with the following one or two divs inside a fieldset.</p>

<p>I've tried inserting fieldset close and then start tag before each p element, but I guess the machinery that sorts it out wants to insert legal elements, so that doesn't work </p>
