Skip to content

Instantly share code, notes, and snippets.

@m4tthumphrey
Created May 8, 2014 10:20
Show Gist options
  • Save m4tthumphrey/e7f313e7b0efcaffc595 to your computer and use it in GitHub Desktop.
Save m4tthumphrey/e7f313e7b0efcaffc595 to your computer and use it in GitHub Desktop.
// ..
submitSettings: function(e) {
e.preventDefault();
console.log($(e.target).serialize());
},
render: function() {
//...
<form action="/validate" method="post" onSubmit={this.submitSettings}>
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment