Select to view content in your preferred language

How to get combobox selected value in dojo

3474
2
10-30-2015 05:21 AM
SadanandacharB1
Occasional Contributor

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

ComboboxValue.jpg

0 Kudos
2 Replies
thejuskambi
Frequent Contributor

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

SadanandacharB1
Occasional Contributor

Hi Thejus, I can't tell u how happy i am, Thank you so so much

0 Kudos