I am creating an app using jQuery Mobile. I have a listview from which i want to remove an existing item. However, I am not able to remove it dynamically.
Please see jsfiddle for my code: http://jsfiddle.net/zbNms/11/
I wish to edit/remove the list item from listview dynamically.
What you are using is an
attribute selectorwhich selects the elements based on their attributes. You should use:contains()selector instead:http://jsfiddle.net/zbNms/12/
http://api.jquery.com/category/selectors/