diff options
Diffstat (limited to 'files/de/web/api/htmlformelement/elements/index.html')
-rw-r--r-- | files/de/web/api/htmlformelement/elements/index.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/files/de/web/api/htmlformelement/elements/index.html b/files/de/web/api/htmlformelement/elements/index.html new file mode 100644 index 0000000000..e5be5603ac --- /dev/null +++ b/files/de/web/api/htmlformelement/elements/index.html @@ -0,0 +1,46 @@ +--- +title: HTMLFormElement.elements +slug: Web/API/HTMLFormElement/elements +translation_of: Web/API/HTMLFormElement/elements +--- +<div> +<div>APIRef("HTML DOM")</div> +</div> + +<p>Die <code><strong>HTMLFormElement.elements</strong></code> Eigenschaft gibt eine domxref("HTMLFormControlsCollection") ( HTMLVersionInline(4) <code><a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-75708506">HTMLCollection</a></code>) aller im FORM element enthaltenen Formularsteuerelemente zurück, mit Ausnahme von <a href="/en-US/docs/HTML/Element/Input" title="input"><code>input</code></a> , die ein <code>type</code> attribute haben von <code>image</code>.</p> + +<p><span id="result_box" lang="de"><span>Sie können auf ein bestimmtes Element zugreifen, indem Sie entweder einen Index oder den Elementnamen oder die ID verwenden.</span></span></p> + +<h2 id="Syntax" name="Syntax">Syntax</h2> + +<pre class="syntaxbox notranslate"><em>nodeList</em> = <em>HTMLFormElement</em>.elements +</pre> + +<h2 id="Example" name="Example">Beschreibung</h2> + +<pre class="brush:js notranslate">let inputs = document.getElementById("form1").elements; +let inputByIndex = inputs[2]; +let inputByName = inputs["login"]; +</pre> + +<h2 id="Specifications" name="Specifications">Spezifikationen</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>SpecName('HTML WHATWG', '#dom-form-elements', 'HTMLFormElement.elements')</td> + <td> Spec2('HTML WHATWG')</td> + <td></td> + </tr> + <tr> + <td>SpecName("DOM2 HTML", "html.html#ID-76728479", "HTMLFormElement.elements")</td> + <td>Spec2("DOM2 HTML")</td> + <td>Initial definition</td> + </tr> + </tbody> +</table> |