Hello, I've been trying to figure out how to combine double-click and toggle but haven't had any luck. Here's what I have so far:
$("li").dblclick(function() { $(this).toggle(function() { $(this).doSomething(); }, function() { $(this).backToNormal(); }); }); Any ideas why this doesn't work?