Check if mousedown with an if statement?

Is it possible to do something like this:

if ($  (this).mousedown() == true) {

I thought that would work but it doesn’t.

Additional details: I’m trying to check if the mouse button is down when the mouse leaves a specific DIV, so if the person is holding the mouse button down while their mouse leaves the div, do this, otherwise do that.

newest questions tagged jquery – Stack Overflow

About Admin