1
Answer

How to clear scroll on using empty function on button click

Renjith V S

Renjith V S

10y
681
1
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)