jQuery - Using .one() with hover
- by Jared
Is there any way to get a hover function to only execute once? This is what I'm currently trying:
$('#ask').live('hover', function() {
$('#homesearch-after').hide(300);
$.doTimeout( 300, function() {
hideClosedSearchLink();
showHomeSearch();
});
});
But that's not working. How can I only get this hover to activate once?
I've tried changing .live with .one and .bind... resulting in nothingness.