JS
$('div').on('mousedown mouseup',function mouseState(e) { if (e.type == "mousedown") { //code triggers on hold console.log("hold"); } });
Working Fiddle