I have the following code:
$(serialNumbersDDL).children("option:gt(0)").remove();
It will delete all the options except the first one. Now I need to delete all the options except the first one and also not delete the option whose value is equal to the label text. How can I say that with writing limited amount of code?
try