cdl / shush

Duplicate form entries suck. This is a jQuery/Zepto plugin to try and combat them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shush.js

Duplicate form entries suck. This should help combat them.


Shush is a simple and easy to use plugin for stopping duplicate form submissions.

Usage

Link shush.js/shush.min.js into your page, and run the .shush() method on the selector for your form. For example:

$("form#login").shush();

It's that easy. It also optionally takes in a single paramether (either a string or a jQuery/Zepto object) that is considered your submit button. Otherwise, it'll just use the submit input that's inside the form .shush() is called on.

$("form#login").shush("button#submit");

Disclaimer

This plugin is still under heavy development and has yet to be majorly tested. Use it at your own risk.

Thanks

Thanks to the following people for their help:

About

Duplicate form entries suck. This is a jQuery/Zepto plugin to try and combat them.

License:MIT License


Languages

Language:JavaScript 100.0%