A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/ja/docs/Web/API/HTMLInputElement/multiple below:

HTMLInputElement: multiple プãƒãƒ‘ティ - Web API

HTMLInputElement: multiple プロパティ

Baseline Widely available

HTMLInputElement.multiple プロパティは、入力フィールドが複数の値を持つことができるかどうかを示します。 Firefox では、 multiple は <input type="file"> でのみ対応しています。

値

論理値です。

例
// fileInput は <input type=file multiple> です
let fileInput = document.getElementById("myfileinput");

if (fileInput.multiple) {
  // fileInput.files を反復処理
  for (const file of fileInput.files) {
    // ファイルの一つに対してアクションを実行
  }
  // 一つのファイルのみが有効な場合
} else {
  let [file] = fileInput.files;
}
仕様書 ブラウザーの互換性 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4