How to make a repeating button with delay in jQuery

by edsilverton

I couldn’t find an example of exactly what I wanted so I’ve made a simple jQuery plugin that turns a regular <button> into a repeat button.

http://jsfiddle.net/edsilv/xKm9K/

The key element being that you can specify how long to wait before repeating the specified action. Therefore allowing discrete clicks as well as click and hold behaviour.

:-)

About these ads