Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by wfsp (Abbot)
on Aug 11, 2011 at 09:52 UTC ( #919833=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?

I think I might check if id was the current_key in my code and set a param to true or false as required.

<TMPL_LOOP NAME="provinceloop"> <option value = "<TMPL_VAR NAME = "id">" selected = "<TMPL_VAR NAME = "current_key"> > <TMPL_VAR NAME="name"> </option> </TMPL_LOOP>


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://919833]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2015-07-29 19:09 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 (267 votes), past polls