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'); } }); });
instead of automatically loading more list-items, suggest placing button users can tap load more (but that's suggestion).reference
Comments
Post a Comment