Hi Yurii,
I opted for the js on success of service but it had no effect still getting doubles, here is the implemtation and the result, any ideas why its not working?
Best Regards
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.
No Yurri sorry be asking again,
still having a problem,
the array is mapped to the grid, which is called menugrid, changed js but getting error, tried the other components areaselectmenu and mobilelist_65 ( in case I misunderstood)
here are some screenshots using menugrid in the js code
Thanks for all of you help
Michael,
N.p. please use following code:
pre
//Note you need replace "menugrid" with your select component name.
var items = jQuery('[name="menugrid"]')
var itemHash = {};
for(var i = 0; i < items.length; i++){
var item = jQuery(items);
var itemText = item.text().trim();
if(itemHash[itemText]){
item.remove();
continue;
};
itemHash[itemText] = true;
};
/pre
Regards.
Thank you Yurii for your attention and patience,
Perfect!
this will save me so much trouble with the additional advertisers and the monthly update of this app.
your attention and help has been awesome!
thanks again.