Skip to content

Instantly share code, notes, and snippets.

@erez-rabih
Created September 3, 2012 21:01
Show Gist options
  • Save erez-rabih/3613501 to your computer and use it in GitHub Desktop.
Save erez-rabih/3613501 to your computer and use it in GitHub Desktop.
window.FormView = Backbone.View.extend({
events: { "tap #submit_form_button" : "submitForm" },
.
.
.
submitForm: function(){
var form = $("#my_form");
form.validate({
rules:{...},
messages:{...},
submitHandler: function(){...}
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment