Set the value for the Combo box using Javascript

I am using an onclick event to run this code.


The code inserts the value into the dhtmlxCombo but I can’t see it. I know it is there though because I am getting no error messages and when I submit the form the value inserted is submitted.

Is there a setting or something else I can change so the value I am inserting shows in the dhtmlxCombo box?

You need the next:
If you load form from XML - you need to use afteCall or onXME or onOptionsLoaded event handlers.