private static void ClearSelect(SelectElement el) { while (el.Options.Length > 0) { el.RemoveChild(el.Options[el.Options.Length - 1]); } }