aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/htmlformelement/elements/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/api/htmlformelement/elements/index.html')
-rw-r--r--files/ja/web/api/htmlformelement/elements/index.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/files/ja/web/api/htmlformelement/elements/index.html b/files/ja/web/api/htmlformelement/elements/index.html
new file mode 100644
index 0000000000..28511d8407
--- /dev/null
+++ b/files/ja/web/api/htmlformelement/elements/index.html
@@ -0,0 +1,25 @@
+---
+title: HTMLFormElement.elements
+slug: Web/API/HTMLFormElement/elements
+tags:
+ - DOM
+ - Gecko
+ - Gecko DOM Reference
+translation_of: Web/API/HTMLFormElement/elements
+---
+<div>
+ {{ApiRef()}}</div>
+<h2 id="Summary" name="Summary">概要</h2>
+<p><b>elements</b> は、form 要素に含まれるすべてのフォームコントロールを含む <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-75708506"><code>HTMLCollection</code></a> を返します。</p>
+<p>index 、または要素の <a href="/ja/docs/DOM/element.name">name</a> か <a href="ja/docs/DOM/element.id">id</a> の何れかを使って個々の要素にアクセスすることができます。</p>
+<h2 id="Syntax" name="Syntax">構文</h2>
+<pre class="syntaxbox"><code><i>nodeList</i> =<i>HTMLFormElement</i>.elements</code></pre>
+<h2 id="Example" name="Example">例</h2>
+<pre class="brush:js">var inputs = document.getElementById("form1").elements;
+var inputByIndex = inputs[2];
+var inputByName = inputs["login"];</pre>
+<h2 id="Specification" name="Specification">仕様書</h2>
+<ul>
+ <li><a class="external" href="http://www.w3.org/TR/html5/forms.html#dom-form-elements" title="http://www.w3.org/TR/html5/forms.html#dom-form-elements">HTML5, Section 4.10.3, The form Element</a></li>
+ <li><a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-76728479">DOM Level 2 HTML: elements</a></li>
+</ul>