I have a jQuery function that works fine when called via onload/setTimeout or onclick separately, but acts up when I combine onclick w/setTimeout: setTimeout doesn't work the first time I click the link, but works every successive time I click except that the timeout is longer (by 2-3 seconds) than I've set it.
Here's the code I'm using in <head> & <script> tags:
$(function(){
$("#link-id").click(function() { setTimeout($("#func-id").myfunc(), 2000); });
});
Any ideas?