dropdown.once
description
Will disable the DropDown element after selection occurs.
syntax
getDropDown(ELEMENT_NAME).once()
example(s)
@newText("I saw Erika talk to Nate.")
$ .after( newDropDown("").add("He","She").once() )
@ .after( newText("seemed anxious.") )
@ .print()
- Prints I saw Erika talk to Nate. _ seemed nervous* onto the page, where *_ is a drop-down list containing the options He and She. The command
.once
makes the selection of He or She definitive.