Reputation: 1286
I want to be able to select a listview item. On select/click I can use onclick event and add class to that li. But, is there any default way in which I can select an item in the listview. I mean, when I select, it should be highlighted and I should be able to get the selected value.
Upvotes: 0
Views: 273
Reputation: 24738
The jQM listview widget does not include any default functionality for a highlighted/selected item. Your approach of
is a good way to go.
Upvotes: 1