jquery - Detect if the select box scroll bar has reached to bottom -


i have select dropdown , want load more options in when scroll bar reaches @ bottom not do. used following code did not work me

$(function () {              var $win = $('#couponproduct_0_id_brand');               $win.scroll(function () {                  if ($win.scrolltop() == 0)                      alert('scrolled page top');                  else if ($win.height() + $win.scrolltop()                                 == $(document).height()) {                      alert('scrolled page bottom');                  }              });          }); 

found answer here

instead of automatically loading more list-items, suggest placing button users can tap load more (but that's suggestion).reference

check out pulgin


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -