How to populate a jqWidget ComboBox

Can you help me by showing how to populate a jqWidget ComboBox?
I am using the following code:

$(document).ready(function () {           
         
            var data = new Array();
            data = myArray  //This is an Array holding my data
   
            var source =
            {
                localdata: data,
                datatype: "array"
            };
          var dataAdapter = new $.jqx.dataAdapter(source);
            $('#ComboBox1').jqxComboBox({ placeHolder: "Select Item",  source: dataAdapter})

But with no luck…

BR

jqWidgets isn’t an AppStudio product, but they do have excellent support.

Did you see the addItem method in jqWidget’s documentation?

https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxcombobox/jquery-combobox-api.htm?search=

ok, I’ll check it. Most probably this is what I was looking for.