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