javascript - jQuery save location on page based on element IDs -
i creating page has long list of items loaded through ajax. there button when clicked expand details under these items (through ajax). works great if user has scrolled down page little bit, clicks button, lose spot they're on (since button loading more data there originally).
i think best way fix remember @ on page based on div element id scrolling. you're scrolling, each line item has id jquery reading , saving 1 they're at. after click button can manually scroll them same id.
can done or there better way it?
Comments
Post a Comment