Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<select></select>
<script>
var select = document.getElementsByTagName("select")[0];
var newOpt = document.createElement("option");
select.add(newOpt, newOpt);
</script>