F
F
Faber Estello2018-02-20 12:35:28
JavaScript
Faber Estello, 2018-02-20 12:35:28

What is the jQuery event called?

How to set a condition when you pressed the left mouse button (clicked), but do not release the button to add a class to an element, and if you have already released the button, then delete the class?

What is the name of the event for this click, but not the release of the mouse button?

As with drag, when you hold down the button and drag the element, and release it and the whole element has become.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lander, 2018-02-20
@senselessV7

https://api.jquery.com/mousedown/
https://api.jquery.com/mouseup/

S
Stimulate, 2018-02-20
@Stimulate

https://api.jquery.com/contextmenu/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question