var LoginView = View.extend({ el: "#login", events: { "click .newuser": "newuser", "submit form": "submit", }, initialize: function(){ this.$form = this.$("form") this.$msg = this.$(".msg") }, show: function(){ this.$form.get(0).reset() this.$msg.html("* Your personal and payment information will always remain private") document.body.className = "login" }, newuser: function(){ app.router.go("account/signup") }, submit: function(e){ e.preventDefault() }, success: function(){ // change login in ui to logout or whatever }, })