Is it possible to create a jquery object that I can perform jquery functions on from just a string representation?
I.e.
var item = '<div>hello</div>';
???
alert(item.html());
I think I could do it by adding it to the DOM using append(), then reselecting it, but i dont really want to do that as it seems horribly ineffcient.
EDIT: Thanks for all the replies