Skip to content Skip to sidebar Skip to footer

Jquery .append() Json Data In A Jquery Mobile List Adding Duplicates When Page Is Refreshed?

I need help. I can't find my mistake. For some reason I get duplicate li when I append a ul. I created an AJAX search that searches for results upon keyup. The problem is that when

Solution 1:

I had that issue once where I cleared the results on page hide. I'm not sure what version of JQueryMobile you're using, but I had this issue in 1.0. The ajax event doesn't seem to destroy the page on pagehide, so I had to remove the elements on pagehide. I don't know if this helps.

Solution 2:

None of these options worked. But I found a quick fix that removes duplicates in a ul. It is the only thing that has worked so far. Here is a link to the solution:

jquery remove duplicate li

Post a Comment for "Jquery .append() Json Data In A Jquery Mobile List Adding Duplicates When Page Is Refreshed?"