Fabyo,
Try: var teste = $("#obj"); alert(teste.scrollTop); You need the "#" prefix to designate an id. (and a "." prefix for class) Native elements, like body, can be directly addressed ( e.g. $("body") ) _______ SEAN O http://www.sean-o.com Fabyo wrote: > > it functions: > var teste = document.getElementById("obj"); > alert(teste.scrollTop); > > it does not function: > var teste = $("obj"); > alert(teste.scrollTop); > > ???? > thanks > > -- View this message in context: http://www.nabble.com/document.getElementById-tf3553327s15494.html#a9922093 Sent from the JQuery mailing list archive at Nabble.com.