1.0.1 • Published 7 years ago

jquery-countdown-button v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

jquery-countdown-button

npm version npm downloads David

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

Nametypedefaultdescription
secondsnumber60seconds to timeout
beforeClickfunction$.noopcalled before countdown, return false to prevent the click
onClickfunction$.noopcalled after countdown setup