jquery selectMenu refresh doesn't work
I have a selectMenu that I initialized and later I want to populate it with some data: $.each(data, function (Key, Value) { $('#ddlReportFarms').append($("<option></option>") .attr("value", Value.ID) .text(Value.Name)); }); $('#ddlReportFarms').selectmenu('refresh', true); this doesn't work for some reason, the new items are not display. if I do this instead of the refresh: $('#ddlReportFarms').selectmenu(); the items are displayed, but when this happens again, the selectMenu duplicates itself (appears twice) and becomes buggy.. anyone? thanks Igal I believe you have to do it like this: [...