You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overriding default options with the options temporarily passed to squirrel. To override the default options, use $.fn.squirrel.options.[OPTION] instead.
Improvements:
Added using an id attribute if a name attribute doesn't exist. A name attribute is the recommended approach though for forms.
Using .on() instead of event aliases for the likes of click and submit, as well as using the namespace "squirrel.js". This allows us specific targeting of the events created by Squirrel.js, instead of just using a generic "click" event.
Changed updating of a form based on the DOM order, therefore offering support for dynamic forms.
Added the 'stop' action, which destroys the events assigned to the form by Squirrel.js.
Various readability tweaks and efficiency improvements.
Updated the example showcasing the following additions.