Say for example I have a body with the class "test" and I want to take that class and add it to another div, how can I do this with jQuery?

Thanks

Edit: Something like this?

 $("body.test").clone().attr("class").prependTo("div");
Edit
Report