jquery-countdown-button

js
Disable a clicked button until countdown finished
Version 1.0.1 License MIT
Keywords
jquery-plugincountdownbuttontimer
jquery-countdown-button
Disable a clicked button until countdown finished
Installation
npm
npm install jquery-countdown-button --save
bower
bower install jquery-countdown-button --save
Usage
See demo
API
Init
$('some button').countdownButton(options)
Options
Name | type | default | description |
---|---|---|---|
seconds | number | 60 | seconds to timeout |
beforeClick | function | $.noop | called before countdown, return false to prevent the click |
onClick | function | $.noop | called after countdown setup |