There is a list, and it loads dynamically when the page loads. This adds list items. The problem is that I placed the backbutton. After going back to the previous screen and returning to the current screen, it loads the data and adds it to the list view.
I need to remove the <li> elements from the list view. The HTML code snippet. <ul id="mymenu" data-role="listview" > </ul> Jquery Code Snippet. $("#mypmenu").append('<li><a href='+ "#" + ' id="a" "> <img src="letterheader.png" >'+ this.textContent + ' </a> </li>'); Now i need to remove the elements from the list view (mymenu)which are loaded already.
source share