blob: c28cfe7786045382f11012f369e127c57f9b34d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
function foopy()
{
var optgroup = document.getElementById("optgroup");
var newspan = document.createElementNS("http://www.w3.org/1999/xhtml", "span");
optgroup.insertBefore(newspan, optgroup.firstChild);
}
</script>
</head>
<body onload="foopy()">
<select><optgroup label="optgroup" id="optgroup"><option>option</option></optgroup></select>
</body>
</html>
|