Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How do I select an option according to a specified value in HTML::Template::Pro?

by tinita (Parson)
on Aug 11, 2011 at 11:22 UTC ( #919848=note: print w/ replies, xml ) Need Help??


in reply to How do I select an option according to a specified value in HTML::Template::Pro?

Just for the records, if you have the possibility to use HTML::Template::Compiled and the plugin HTML_Tags:
Template:

<tmpl_html_option province>

Perl:
$htc->param( province => [ 'opt_2', # selected ['opt_1', 'option 1'], ['opt_2', 'option 2'], ], );
Output:
<option value="opt_1">option 1</option> <option value="opt_2" selected="selected">option 2</option>


Comment on Re: How do I select an option according to a specified value in HTML::Template::Pro?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://919848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2015-07-08 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (96 votes), past polls