I'm trying to wrap the contents of a form element
in a div with the class .content
and I'm getting an error that the inner $(element).html()
is a "unrecognized expression".
$(element).html($($(element).html()).wrap($("<div>").addClass(".content")));
Ideas?