1.0.1 • Published 8 years ago
jquery-countdown-button v1.0.1
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 |