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.