SO - 16438469

by Arun P Johny

HTML

<div class="item">what</div>

JavaScript

$(function(){
    var timer;
    
    $('.item').hover(function(){
        timer = setTimeout(function(){
            console.log('do it')
        },  1000);
    }, function(){
        clearTimeout(timer);
    });
})