I have the following dropdown list:
B D<
you don't need this. just a two line code is enough.
var Node1 = document.getElementById("DD1"); Node1.removeChild(Node1.childNodes[1]);