javascript - jQuery - triggering a regular function call on mousedown -


I have to call a function at a fixed interval regularly, while holding the left mouse button on a specific element going. Is there an easy way to do this in jQuery or should I use vanilla javascript and set internwall / setimout?

Thanks

Here is a jQuery plugin which can be used by mousehold Provides the event.

If you go to and by clicking on an arrow to the right of the last input box, you will see how it works.

Comments