зеркало из https://github.com/mozilla/pjs.git
updated test
This commit is contained in:
Родитель
f5031d89a9
Коммит
8899b58896
|
@ -1,40 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>optgroup.html</title>
|
||||
<script>
|
||||
var isHidden = true;
|
||||
var isScroll = false;
|
||||
|
||||
function AddContent(aDoAdd)
|
||||
{
|
||||
var node = document.getElementById("mySelect");
|
||||
var first = null;//document.getElementById("first");
|
||||
if (aDoAdd == 1) {
|
||||
var notworks = false;
|
||||
var option;
|
||||
if (notworks) {
|
||||
option = new HTMLOptionElement("Three", 3);
|
||||
//option.label = "Three";
|
||||
//option.value = "3";
|
||||
} else {
|
||||
option = new Option("Three", 3);
|
||||
}
|
||||
node.add(option, first);
|
||||
} else {
|
||||
node.remove(0);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" text="#000000">
|
||||
<form>
|
||||
<input type=button id="button" value="Add Content" onclick="AddContent(1)">
|
||||
<input type=button id="button2" value="Remove Content" onclick="AddContent(0)">
|
||||
<select id=mySelect size=1>
|
||||
<option id="first"> Two</option>
|
||||
</select>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче