Module function reference
select
A reference entry for select
select select (string name, list options[, mixed selected[, map attributes]]) ⇒ string
Creates an HTML select element.
Example
YASS
$html = HTML::select("colour", ["red", "blue"], "blue")
Input: name="colour", options=["red", "blue"], selected="blue"
Output: <select name="colour"><option value="red">red</option><option value="blue" selected>blue</option></select>