summaryrefslogtreecommitdiff
path: root/httemplate/elements/select.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/select.html')
-rw-r--r--httemplate/elements/select.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/httemplate/elements/select.html b/httemplate/elements/select.html
index 4492681de..42cd89504 100644
--- a/httemplate/elements/select.html
+++ b/httemplate/elements/select.html
@@ -1,3 +1,29 @@
+<%doc>
+<& select.html,
+ # required
+ field => 'myfield', # NAME property
+ curr_value => 'foo',
+ labels => { # or 'option_labels'
+ 'AL' => 'Alabama',
+ 'AK' => 'Alaska',
+ 'AR' => 'Arkansas',
+ },
+ options => [ 'AL', 'AK', 'AR' ],
+ curr_value => $cgi->param('myfield'),
+
+ # recommended
+ id => 'myid', # DOM id
+
+ # optional
+ size => 1, # to show multiple rows at once
+ style => '', # STYLE property
+ multiple => 0,
+ disabled => 0,
+ onchange => 'do_something()',
+ js_only => 0, # disables the whole thing
+&>
+</%doc>
+
% unless ( $opt{'js_only'} ) {
<SELECT NAME = "<% $opt{field} %>"