How can I remove duplicate values -> drop down option elements? I have the following HTML:
All Servers
You can use the following code to remove options with duplicate values.
$(document).ready( function(){ var a = new Array(); $("#selectID").children("option").each(function(x){ test = false; b = a[x] = $(this).val(); for (i=0;i