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?
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?