Sunday, August 30, 2009

[jQuery] Settimeout on Function

Hi,

I have this code:

$(document).ready(function(){

$("#barcode span").hover(
function () {
$(this).addClass("barover");
},
function () {
$(this).removeClass("barover");
}
);
});


I would like to add a timeout so that the removeClass gets delayed for
a specified amount of time. Any ideas how to add a settimeout to
this?

Thanks!

No comments: