Search.../

placeholder

Sets or gets the placeholder text content.

Description

Placeholder text is typically used to provide a hint to the user of what to enter into a input element that accepts text. When the user begins to enter text, the placeholder text disappears. Set placeholder to null to disable.

Max: 1200 characters

Type:

stringRead & Write

Was this helpful?

Get the dashboard number input's placeholder

Copy Code
1let myPlaceholder = $w('#myElement').placeholder; // "Email"
Set the dashboard number input's placeholder

Copy Code
1$w('#myElement').placeholder = "Email";