SyntaxFix
Write A Post
Hire A Developer
Questions
This seems to work fine for me:
$("#id")[0].outerHTML