Here\'s the fiddle I\'m working with: http://jsfiddle.net/Scd9b/
How can I delay the href function after the click?
For example a user clicks on the link, th
How about e.preventDefault in your click handler. Then do a setTimeout that takes you to your destination?
$("a.question").click(function(e){ e.preventDefault(); $(this).toggleClass("active").next().slideToggle("slow"); setTimeout('window.location.href=' + $(this).attr(href), 2000); });