Link Search Menu Expand Document

dropdown.add

description

Adds an option, or several options to the drop-down list.

syntax

getDropDown(ELEMENT_NAME).add(option)
  • option :

alternate(s)

  • getDropDown(ELEMENT_NAME).add("option1","option2",...)


example(s)


@newDropDown("language" , "First language")
$    .add( "English" , "French" , "Tagalog" )
@    .print()
  • Creates a drop-down list with default text First language and adds three options to it: English, French and Tagalog, then prints the list onto the page.