Search...
placeholder
Sets or gets the placeholder text of an element.
Description
The placeholder text is displayed only when no dropdown option is selected.
Maximum length is 120 characters.
Type:
stringRead & Write
Was this helpful?
Get an element's placeholder
Copy Code
1let label = $w("#myElement").placeholder; // "Type your name"
Set an element's placeholder
Copy Code
1$w("#myElement").placeholder = "New Placeholder";