$element->setValue()
Synopsis
$element->setValue (
mixed $value
)
Description
This is used to set the values of form elements, results depend on the type of element
-
text,password inputs, buttonsFills in the value attribute -
checkboxs / radio buttonsadds a checked tag to the matching element -
textareafills in the text area content -
checkbox with arraysadds checked to the matching elements -
selectsadds selected to the
Parameter
-
$valueThe value to assign a form element, (use arrays for multiple selects or checkbox groups)
Throws
throws no exceptions thrown
Note
This function can not be called statically.