aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/htmlinputelement
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2022-02-05 10:49:51 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2022-02-12 10:43:00 +0900
commit9e7ada5e0c2eb63aa9aba87e859113ea87e2600d (patch)
tree1227f410d0b6c03b987e94f38e3bd3c803dd3e23 /files/ja/web/api/htmlinputelement
parente453a3416e5eb1668b64a8ba54172707eb99edac (diff)
downloadtranslated-content-9e7ada5e0c2eb63aa9aba87e859113ea87e2600d.tar.gz
translated-content-9e7ada5e0c2eb63aa9aba87e859113ea87e2600d.tar.bz2
translated-content-9e7ada5e0c2eb63aa9aba87e859113ea87e2600d.zip
2021/09/15 時点の英語版に同期
Diffstat (limited to 'files/ja/web/api/htmlinputelement')
-rw-r--r--files/ja/web/api/htmlinputelement/multiple/index.md48
1 files changed, 29 insertions, 19 deletions
diff --git a/files/ja/web/api/htmlinputelement/multiple/index.md b/files/ja/web/api/htmlinputelement/multiple/index.md
index 8415f39c16..ba7d333701 100644
--- a/files/ja/web/api/htmlinputelement/multiple/index.md
+++ b/files/ja/web/api/htmlinputelement/multiple/index.md
@@ -1,38 +1,48 @@
---
title: HTMLInputElement.multiple
slug: Web/API/HTMLInputElement/multiple
+tags:
+ - API
+ - HTML DOM
+ - HTMLInputElement
+ - NeedsMarkupWork
+ - NeedsSpecTable
+ - プロパティ
+ - リファレンス
+browser-compat: api.HTMLInputElement.multiple
translation_of: Web/API/HTMLInputElement/multiple
---
-<div>{{ APIRef("HTML DOM") }}</div>
+{{ APIRef("HTML DOM") }}
-<p><strong><code>HTMLInputElement.multiple</code></strong>は<code>input</code>タグが複数の値を持つことができるかどうかを示すプロパティです。現在Firefoxでは、<strong>multiple</strong>属性は<code>&lt;input type="file"&gt;</code>でのみサポートされています。</p>
+**`HTMLInputElement.multiple`** プロパティは、入力フィールドが複数の値を持つことができるかどうかを示します。 Firefox では、 `multiple` は `<input type="file">` でのみ対応しています。
-<h2 id="例">例</h2>
+## 例
-<pre class="brush:js">// fileInputは&lt;input type=file multiple&gt;であるようなHTML要素です
-var fileInput = document.getElementById("myfileinput");
+```js
+// fileInput は <input type=file multiple> です
+let fileInput = document.getElementById('myfileinput');
if (fileInput.multiple == true) {
- for (var i = 0, len = fileInput.files.length; i &lt; len; i++) {
- // fileInput.filesをループ
- }
+ for (let i = 0; i < fileInput.files.length; i++) {
+ // Loop fileInput.files
+ }
// 一つのファイルのみが有効な場合
} else {
- var file = fileInput.files.item(0);
+ let file = fileInput.files.item(0);
}
-</pre>
+```
-<h2 id="関連情報">関連情報</h2>
+## 仕様書
-<ul>
- <li><a href="/ja/DOM/FileList" title="en/DOM/FileList">FileList</a></li>
- <li><a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=523771">Bug 523771</a> - <span class="bz_default_hidden" id="summary_alias_container" style="display: inline;"> <span id="short_desc_nonedit_display">Support &lt;input type=file multiple&gt;</span> </span></li>
-</ul>
+{{Specifications}}
-<h2 id="仕様">仕様</h2>
+## ブラウザーの互換性
-<ul>
- <li><a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#attr-input-multiple">The multiple attribute</a> (HTML 5 working draft)</li>
-</ul>
+{{Compat}}
+
+## 関連情報
+
+- [FileList](/ja/docs/Web/API/FileList)
+- [Bug 523771](https://bugzilla.mozilla.org/show_bug.cgi?id=523771) - \<input type=file multiple> への対応