how to find scrollTop in jquery?
$(document).ready(function () {
$("body").click(function () {
alert($("body").scrollTop());
});
});
the above code returns only 0.
It seems doctype is not supporting.
<!DOCTYPE html public "-//W3C//DTD Xhtml 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---