Hi Michael,
This time was my bad. I did not understand you clear.
In this case you need replace code inside "success" event handler with following:
pre
//Note you need replace "menugrid" with your select component name.
var items = jQuery('[name="menugrid"]')
var itemHash = {};
for(var i = 0; i < options.length; i++){
var item = jQuery(items);
var itemText = item.text().trim();
if(itemHash[itemText]){
item.remove();
continue;
};
itemHash[itemText] = true;
};
/pre
Regards.