Good evening.
I have a function:
var auto_refresh = setInterval( function AUTOREFRESH2() { $('#ajax').load('checkready.php').fadeIn("slow"); }, ); </script> How to make it so that when you press a button, this function works for 5 seconds? Then, as it takes 5 seconds, it would turn off.
clearIntervalIn the question code, the second parameter is omitted in thesetIntervalcall. - Igor