LJ::html_check

LJ::html_check — Creates HTML checkbox button, and radio button controls.

Use

LJ::html_check(type, opts);

Arguments

  • type. Valid types are 'radio' or 'checkbox'.

  • opts. A hashref of options. Special options are: 'disabled' - disables the element; 'selected' - if multiple, an arrayref of selected values; otherwise, a scalar equalling the selected value; 'raw' - inserts value unescaped into select tag; 'noescape' - won't escape key values if set to 1; 'label' - label for checkbox;

Info

Labels for checkboxes are through LJ::labelfy. It does this safely, by not including any HTML elements in the label tag.

Source:

cgi-bin/htmlcontrols.pl