$(HTMLelement)
can success it. If you want an epmty div use it as $('');
. Also you can set the other elements by the same method. If you want to change inner HTML after created you can use html()
method. For get outerHTML as string you can use is like this :
var element = $('');
var innerHTML = element.html(); // if you want set new HTML use it like this element.html('new HTML');
var outerHTML = element[0].outerHTML;