jQuery('div#top').replaceWith('<div id="top">
</div>')
When I try to replace the entire content of the top div using jQuery, Chrome gives me an error: "Uncaught SyntaxError: Unexpected token" on the first line. I'm not sure what's causing this issue as I am simply trying to update the top div.
Just to clarify, I am replacing all the contents inside the top div with my own content. There are multiple nested divs inside the top div which I have not included in this code snippet.