Baseline Widely available
The placeholder
property of the HTMLInputElement
interface represents a hint to the user of what can be entered in the control. It reflects the <input>
element's placeholder
attribute.
A string.
Examplesjs
const inputElement = document.getElementById("phone");
console.log(input.placeholder);
Specifications Browser compatibility
Loadingâ¦
See also<input>
HTMLInputElement.value
::placeholder
pseudo-element:placeholder-shown
pseudo-classRetroSearch 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.5