The new PCIbex Farm is here! Be sure to check out all of its new features and changes.

Link Search Menu Expand Document


Selects an option in the drop-down list. Nothing happens if the option passed as an argument does not exist.


  • option :


@newDropDown("warmth", "")
@    .add("hot", "lukewarm", "cold")
$    .select( "lukewarm" )
@newText("Spring in Colorado is ")
@    .after( getDropDown("warmth") )
@    .print()
  • Creates a drop-down list containing the options hot, lukewarm and cold, selects the option lukewarm and adds the list to the right of the text Spring in Colorado is, then prints everything onto the page.