Jquery: mousedown effect (while left click is held down)

Viewed 33209

I need a function that executes a function while a button is pressed and stops executing when the button is let go

$('#button').--while being held down--(function() {
     //execute continuously
}); 
4 Answers
Related