1. 開発者向けのウェブ技術
  2. Web API
  3. HTMLInputElement
  4. placeholder

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

HTMLInputElement: placeholder プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨2015年7月⁩.

placeholderHTMLInputElement インターフェイスのプロパティで、このコントロールに入力できる内容についてのヒントをユーザーに表示します。これは、<input> 要素の placeholder 属性を反映します。

文字列です。

js
const inputElement = document.getElementById("phone");
console.log(input.placeholder);

仕様書

Specification
HTML
# dom-input-placeholder

ブラウザーの互換性

関連情報

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /