How can I trigger the Jquery .on() function when the mouse button is pressed, instead of when it is released.

Viewed 54

The Jquery code $(element).on("click", selector, handler) , will trigger the handler function after the mouse button is released from the selected element. Is there a way to trigger the event when the mouse button is pressed?

2 Answers
Related