Renjith V S

Renjith V S

  • NA
  • 317
  • 66k

How to clear scroll on using empty function on button click

Aug 13 2014 1:09 AM
Hi,
    I need to clear  scroll and value inside a div using empty (). On using empty() value inside the div is cleared but the scroll still remains there. For example: I have a search box and a button, on clicking search button a list of 10 results show first and on scrolling it shows next 10 results and so on. But whenever I type new search word in search box and click on search button will shows 20 results not 10 results. (Note: No:of results shown in second click is based on the no:of scrolls in the previous search).
Please help me. 

Answers (1)