Search found 1 match

Go to advanced search

by John de Guerto
Mon Nov 30, 2015 1:48 pm
Forum: Issues
Topic: infinite scrolling demo, how to clear list for fresh data
Replies: 2
Views: 532
 
Jump to post

infinite scrolling demo, how to clear list for fresh data

Hi Gregory,

Here is how I did this;

jQuery("[name='yourlist']").find("li:not(.first)").remove(); or .detach() or empty() depends on you.

this will remove all elements except the first li so that you can prepend data when you change the query.

give that a try.

Go to advanced search