Re: [htmltmpl] Select/option How to set "selected"?
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2004-05-04 19:27:53
|
> >You're telling me you don't keep a list of your class attributes in > >your Perl code already? I don't believe you! > > I don't understand. I don't have any elements or attributes in my > Perl code. It's all contained in templates. I feel like I'm missing > a point of sarcasm? Nope, I just misread your comment as referring to Perl class attributes rather than CSS class attributes. You're correct that if the form elements need CSS classes then you'd need to pass them to CGI.pm in the Perl code. Although, it occurs to me that you could just tell your HTML designers to wrap the tag in a <span> and use that to apply their CSS: <span class="jazzy"><tmpl_var some_select></span> -sam |