Going through a very basic tutorial on backbone.js views.
The expected behavior is to call the render function when #sayhello button is clicked. Render simply uses
It's because #sayhello is not part of your view. Try putting #sayhello inside #helloworld:
<div id="helloworld">
<button id="sayhello">Say Hello</button>
</div>
If you are dynamically rendering the page using the templates, then in the render function consider calling view.setElement(...);
this.setElement($('#login-container'));