?? listboxremoveexample.htm
字號:
<html>
<head>
<title>Listbox Remove Example</title>
<script type="text/javascript" src="listutil.js"></script>
<script type="text/javascript">
function removeItem() {
var oListbox = document.getElementById("selListbox");
var oTxtIndex = document.getElementById("txtIndex");
ListUtil.remove(oListbox, parseInt(oTxtIndex.value));
}
</script>
</head>
<body>
<form>
<select id="selListbox" size="5">
<option>Original Value 0</option>
<option>Original Value 1</option>
<option>Original Value 2</option>
<option>Original Value 3</option>
<option>Original Value 4</option>
</select><br />
Click the "Remove" button to remove the item with this position:<br />
<input type="text" id="txtIndex" /><br />
<input type="button" value="Remove" onclick="removeItem()" />
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -