jquery - scrolling event not triggering Javascript -


$(window).scroll(function()         {             if($(window).scrolltop() == $(document).height() - $(window).height())             {                 alert('d');             }          }); 

is there wrong above code? wish infinite scrolling stuck in phase. no error in console wonder why. it's working in pure js, not in angularjs's controller.


Comments

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -