@jaffathecake first option, but maybe even without the resetOption(). It's not difficult to clone the option and replace the value manually, is it?
Top-level
@jaffathecake first option, but maybe even without the resetOption(). It's not difficult to clone the option and replace the value manually, is it? 1 comment
|
@gundersen that's fair. selectedOption.replaceChildren(...select.selectedOptions[0].cloneNode(true).childNodes)