This is a really simple question, but I did not find an answer through searching.
When creating an SPA, what is the process for updating the content if you were to do it with jQuery? Is it simply deleting the contents of a node, and writing new HTML?
Here's some code to make the question clearer:
Suppose you have SPA page like this:
<div id='nav'>
<div class='link'>home</div>
<div class='link'>about</div>
...
</div>
<div id='page_content'>
...
</div>
When the user clicks on a nav item, jQuery does an HTTP get for the content: var content = ...
. To update the page, simply update the page with $('#page_content').html( content )
?