Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var LoginFom = {
element: $("form#login-form"),
hasErrors: function() {
// validation code here...
// returns true or false.
// ...
var ErrorContainer = {
element: $("div.form-errors")
if (LoginForm.hasErrors()) {;
$("input.submit").on("click", function() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.