Dynamic List loses styling on second update.
I have a listview that is populated dynamically - the first time it runs fine with the correct styling but when the user selects the page again it loses its styling with the list displaying as ordinary hyperlinks.
I am using jquery-1.7.1 & jquery.mobile-1.4.2
The markup looks like this,
- $('#container_update').empty();
- for(n=0; n<=5; n++){
- $('#container_update').append('<li><a href="#nextPage">The value '+n+'</a></li>');
- };
- $('#container_update').listview('refresh');
Thanks,
Paul.