HTMLSelectElement: name プロパティ - Web API | MDN
この要素の名前を表す文字列です。
js
const selectElement = document.querySelector("#planets"); console.log(`Element's name: ${selectElement.name}`); selectElement.name = "galaxies"; // 要素の名前を設定または更新
HTMLSelectElement.value
HTMLSelectElement.selectedIndex
HTMLSelectElement.options
Yes No
Learn how to contribute
This page was last modified on 2025年4月12日 by MDN contributors.