Skip to content
forked from andyet/Happy.js

JS: Happy.js with an imperative method of doing validation and additional extensions. Forked in 2012.

License

Notifications You must be signed in to change notification settings

tomkit/Happy.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Forked:

Forked to work with backbone.js:

-Provides a .now() call to do validation without form submission since in backbone.js most form submissions are handled by custom code instead of its default behavior.

-Provides an .unHappy() callback in the options hash.

-Provides a 'scope' input to take in your backbone view's scoped el.

-Don't revalidate upon blur; do it on submit.

-Clear out old errors.

this.$el.find('#id').isHappy({
    unHappy: function() {}, // Callback when validation fails.
    scope : this.el         // Pass in the scoped el for this validation form
}).now();		    // Call now() when you want to run the validation.

#Happy.js – are your forms happy? Just ask 'em!

happyjs.com

About

JS: Happy.js with an imperative method of doing validation and additional extensions. Forked in 2012.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%