I have a dropdownlist that I create with the following code:
$('td#' + selectedCol + ' .units').ejDropDownList({
width: 250,
popupHeight: 300,
watermarkText: "Select a unit",
dataSource: unitsOfMeasure,
fields: {
text: "text",
value: "value"
}
});
now, when the user click a button, I'd like to change the dataSource and load another set of items, contained in the variable unitOfMeasure2,
How can I do it in the fastest and most performant way?
Thanks
Best