Hi All
I am populating combobox using web api 2 odata service using dojo, But here i want to know how to get selected 'id'.
Please help me
Hello Sadanandachar,
I usually directly use the dropdown's item property. It will return the object associated with the selected index.
var selectedItem = this._queryNameDropDown.item;
id = selectedItem.id;
Hope this was helpful.
Thejus
Hi Thejus, I can't tell u how happy i am, Thank you so so much
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.