Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<script>
window.onload=function() {
a.options[10] = b;
document.execCommand("selectAll", false);
document.activeElement.hidden = true;
a.options.selectedIndex = 1;
}
</script>
<input contenteditable>
<select id="a" multiple>
<option id="b" selected>