Filter duplicate options from select dropdown
var usedNames = {}; $("select[name='company'] > option").each(function () { if(usedNames[this.text]) { $(this).remove(); } else { usedNames[this.text] = this.value; } });