Thanks guys! Special thanks Karl, it works pefectly!
On Jul 10, 7:36 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> I don't think that is going to work as is, since scrollTop and
> scrollHeight are DOM properties.
>
> You could try it this way instead:
>
> $('element').scroll(function() {
>
Whoops, I forgot to add [0] after the elements ;). But yours works, I
would assume.
On Jul 10, 11:36 am, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> I don't think that is going to work as is, since scrollTop and
> scrollHeight are DOM properties.
>
> You could try it this way instead:
>
> $('ele
I don't think that is going to work as is, since scrollTop and
scrollHeight are DOM properties.
You could try it this way instead:
$('element').scroll(function() {
if (this.scrollTop + $(this).height() == this.scrollHeight) {
// console.log('finished');
}
});
--Karl
__
$("element").scroll(function() {
if($("element").scrollTop == $("element").scrollHeight;) {
//do something
}
});
Untested, but should work.
On Jul 10, 9:18 am, fambi <[EMAIL PROTECTED]> wrote:
> Thanking you guys in advance for any help/advice...
>
> How can I know that I've reach
4 matches
Mail list logo