Search...
placeholder
Sets or gets the placeholder text of an element.
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";