@
ash_gsmls - what are you using in the customSelect() method? I do not see that on the API. Can you share your HTML as well?
I am having the same issue, and using 'unwrap' and 'customSelect' are only complicating it further.
I am in an AJAX call. Here is my code.
success: function(data, textStatus, jqXHR){
var selectedIndex = -1;
var options = "";
$.each(data, function(index, item) {
options += ("<option" + (item.selected ? " selected" : "") + ">" + item.value + "</option>");
if(item.selected) {
selectedIndex = index;
}
});
$('#selectbox').append(options);
if(selectedIndex > -1) {
$('#
selectbox ').attr("selectedIndex", selectedIndex);
}
$('#selectbox ').selectmenu("refresh");
},
if anyone can offer any suggestions, I would be very appreciative.