I´m stuck, please help!

My code:

<div class="box-two">
    <h1>some header</h1>
    <img name="Image" src="" width="250" height="200" alt="Image" />
    <p>Lorem ipsum dolor sit amet</p>
</div>


The jQuery:

$(document).ready(function(){
        $("div.box-two > *").wrap('<div class="inside"></div>');
 });

The idea is to 'wrap' the <h1>, <img> and the <p> with a single <div
class="inside">.
The problem I have is that ALL the elements are individually wrapped
with <div class="inside">. Not what I want!

How can i tell jquery to do this?

Reply via email to