📄 selected.js
字号:
// a function to get the selected item in a list
function get_selected()
{
// a variable to store the selected index number
var pick = window.document.forms.f.city.selectedIndex;
// assign the associated value of the selected element
// to a text field with the id of "txt1"
window.document.forms.f.txt1.value =
window.document.forms.f.city.options[pick].value;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -