Is there a way to dynamically change the empty text field in my textfield?
So far, I've attempted the following:
myTextField.emptyText = 'new empty text';
myTextField.emptyText = 'new empty text';
myTextField.applyEmptyText();
myTextField.emptyText = ['new empty text'];
myTextField.emptyText = ['new empty text'];
myTextField.applyEmptyText();
Although applyEmptyText()
is not documented in the API, I decided to try it since it has worked in previous versions. Some sources suggest using brackets as well.
After printing out myTextField
in the console, I can see that the emptyText
property reflects the desired changes. However, the actual textfield in the browser does not update accordingly.