Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<select id="MyList" style="width: 100px;">
<option>javascript</option>
<option>jquery</option>
<option>angularjs</option>
<option>javascript</option>
<option>jquery</option>
<option>angularjs</option>
</select>
<script type="text/javascript">
var src = document.getElementById("MyList");
i = 0;
for (var count = 0; count < src.options.length; count++) {
i = i + 1;
for (var count1 = i; count1 < src.options.length; count1++) {
if (src.options[count].innerText == src.options[count1].innerText) {
src.remove(count1);
}
}
}
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507