Get / Set Selected Value

Hi, I'm trying to get / set the selelected value of my ComboBox


The properties "ej2_instances" in my javascript function of my combobox is always undefined.
document.getElementById('country').ej2_instances[0];

Also, the property Change call my function only one time at startup and never called again when I change de selection manualy.

1 Reply

IB Ilakkiya Baskar Syncfusion Team March 27, 2018 09:31 AM UTC

Hi Tommy,   
  
Thank you for contacting Syncfusion Support.   
   
We suggest you to check the “Id” of the component and the “document.getElementById” statement is placed inside the change function, which is mentioned in the change property of the ComboBox component.   
If issue persists, kindly send us the screenshot where the error produce and more details along with the code snippet.   
   
Please refer to the sample in the below location,   
   
Regards,   
Ilakkiya B   


Loader.
Up arrow icon