roberthovhannisyan / PhoneGap-Plugin-ListPicker

ListPicker Plugin for Cordova/PhoneGap (iOS and Android)
MIT License
35 stars 40 forks source link

Displaying listview text of the selected item #22

Open sankari123 opened 7 years ago

sankari123 commented 7 years ago

I am using month and monthindex in list view
items: [ { text: "January", value: "1" }, { text: "February", value: "2" }, and so on

alert("You have selected " + item); - displays the value of the selected index. But how do i get the text of the selected index. for example when i select jan, i want both the values Jan and 1 to be displayed. pl help