1.value //値
VaRの入力=のdocument.getElementById(' ボックス' ) input.value = ' 哈哈' にconsole.log(input.value)
2.type //タイプ
VaRの入力=のdocument.getElementById(' ボックス' ) input.type = ' チェックボックス' にconsole.log(input.type)
3.disabled //無効化
VaRの入力=のdocument.getElementById(' ボックス' ) VAR BT =のdocument.getElementById(' BT ' ) bt.onclick = 関数(){ input.disabled = 真。 }
4.checked //チェックボックスは、プロパティを選択します
VaRの入力=のdocument.getElementById(' ボックス' ) VAR BT =のdocument.getElementById(' BT ' ) bt.onclick = 関数(){ 入力。確認 = 真; }
5.selected //ドロップダウンボックス属性
VaRのオプション= document.getElementsByTagName(' オプション' ) VAR BT =のdocument.getElementById(' BT ' ) bt.onclick = 関数(){ オプション、[ 3 ] = .selected 真。 }