How can I remove duplicate values -> drop down option elements?
I have the following HTML:
# This is other quick option iterating options, counting the duplicates and remove when are more than one#
var opt = $("select[title='Country'] option");
$.each(opt, function (key, value) {
var len = $("select[title='Country'] option:contains(" + value.text + ")").length;
if (len > 1)
{
value.remove();
}
});