Name
checkbox
Synopsis
print $query ->checkbox('name' [,’checked',’value',’label'])
Description
Generates a single checkbox.
- name
The name to assign the input to (required).
- ‘checked’
Checkbox should be checked initially.
- value
The value to return when checked (default is
on
).- label
The label to use for the checkbox (default is the name of the checkbox).
Using named parameters, the syntax is:
print $query->checkbox(-name=>'name', -checked=>'checked', -value=>'value', -label=>'label', -onClick=>function);
-
-onClick=>
function
Browser should execute
function
when the user clicks on any checkbox in the group.
-
Get Perl in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.