HTML DOM Fieldset オブジェクト
- 前のページ <embed>
- 次のページ <figcaption>
Fieldset オブジェクト
Fieldset オブジェクトはHTML <fieldset> 要素を表します。
Fieldset オブジェクトへのアクセス
getElementById()を使用して <fieldset> 要素にアクセスできます:
var x = document.getElementById("myFieldset");
ヒント:フォームを遍历することでアクセスすることもできます: elements コレクション Fieldset オブジェクトにアクセスするために
Fieldset オブジェクトの作成
document.createElement() メソッドを使用して <fieldset> 要素を作成できます:
var x = document.createElement("FIELDSET");
Fieldset オブジェクト属性
属性 | 説明 |
---|---|
disabled | fieldsetが無効であるかどうかを設定または返します。 |
form | 包含しているfieldsetのフォームへの参照を返します。 |
name | fieldsetのname属性値を設定または返します。 |
type | fieldsetのフォーム要素のタイプを返します。 |
- 前のページ <embed>
- 次のページ <figcaption>