LJ::html_select

LJ::html_select — Creates a drop-down box or listbox HTML form element (the <select> tag).

Use

LJ::html_select(opts);

Arguments

  • opts. A hashref of options. Special options are: 'raw' - inserts value unescaped into select tag; 'noescape' - won't escape key values if set to 1; 'disabled' - disables the element; 'include_ids' - bool. If true, puts id attributes on each element in the drop-down. ids are off by default, to reduce page sizes with large drop-down menus; 'multiple' - creates a drop-down if 0, a multi-select listbox if 1; 'selected' - if multiple, an arrayref of selected values; otherwise, a scalar equalling the selected value; All other options will be treated as HTML attribute/value pairs.

Source:

cgi-bin/htmlcontrols.pl

Returns:

The generated HTML.