Hi there. Try $(window).scrollTop() instead.

--Karl

____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Jul 1, 2009, at 3:33 AM, jagadeesh wrote:

>
> 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 jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to