Home > jQuery > .delay() is not a function

Problem
.delay() is not a function

Solution
delay() is a new function added in jQuery 1.4. If you are using jQuery 1.3, you will get the above error. Solution is to use .animate() instead of .delay().

Example
Convert
$e.delay(1000).fadeOut();
Into
$e.animate({top: 0}, 1000).fadeOut();



Flag Counter