I just realized a strange behaviour when removing and re-appending options to a select element. It happens that if one of the options is selected, after appended, the next item becomes selected instead of the original one. Consider the following html:I just realized a strange behaviour when removi