Wikipedia viewer List Concatenating

Wikipedia viewer List Concatenating
0.0 0


Just adding a few more touches to my Wikipedia viewer here

The problem I have is that whenever I search, the first term I searched isn’t deleted, It just goes below my new search.

So when I search multiple times, the page becomes long.

Can anyone help me please?




right before the for loop in the success function will clear it out first. I would also use append instead of prepend to add in the items, otherwise they are in the “wrong” order, with the most relevant at the bottom.


@kevinSmith , Thank you very much!

So that’s why the most relevant is at the bottom .