[SOLVED] Why is it callback and not callback()??

[SOLVED] Why is it callback and not callback()??

Im going to answer my own question. I thought it might help someone out there. When using animate. I noticed that it works with the following.

$('#mydiv').animate({width: '400px'}, 1000, "linear", hello);

but not with


$('#mydiv').animate({width: '400px'}, 1000, "linear", hello());

The reason apparently is because that last argument of animate is not a function call. Read this article....

http://interactivevolcano.com/jquery-animation-timing

Thanks,