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:
Post a Comment for "JQuery .append() JSON Data In A JQuery Mobile List Adding Duplicates When Page Is Refreshed?"