Check if mousedown with an if statement?

前端 未结 5 642
悲哀的现实
悲哀的现实 2021-02-02 17:16

Is it possible to do something like this:

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

I thought that would work but it doesn\'t.

Additio

5条回答
  •  礼貌的吻别
    2021-02-02 17:56

    http://jsfiddle.net/5HrWF/

    something like this?

    Code:

    
    
    
      
    
    
      

    Press mouse and release here.

提交回复
热议问题