I have a problem with the listview in jquery mobile. I want to load some data from a server using JSON and fill thy listview with the items. That works fine. But when I am trying to react on a click on a new loaded item I do net get the event! I think I have to refresh the view somehow, bit do not know how.
I made a little sketch on http://jsfiddle.net/VqULm/227/
when u hit the click me button the click event on a item isn’t tracked anymore. How do i get the “Wokrs” alert on the new items?
Thank u very much for reading!
Try
with
jQuery > 1.7DEMO
OR
with your jQuery version 1.6.4.
DEMO
why you need this
Because. you’re adding
liwithinlistviewafter page reload, so any event for thoselis shouldlive(for jQuery version you used) ordelegate(jQuery > 1.7).