HTML_QuickForm_select::setSelected()

HTML_QuickForm_select::setSelected() – Sets the default values of the select box

Synopsis

require_once 'HTML/QuickForm/select.php';

void HTML_QuickForm_select::setSelected ( mixed $values )

Description

This method is an alias for setValue(). For multiple selects you can pass either an array or a comma delimited string of values.

Parameter

mixed $values

Array or comma delimited string of selected values

Throws

throws no exceptions thrown

See

see getSelected().

Note

since 1.0

This function can not be called statically.

Sets the select mutiple attribute (Previous) Sets the select field size, only applies to 'multiple' selects (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.