Hi!

I tries to generate <select> with tt templates, and I got the next html code:

    <div class="select">






<select name="sex">

        <
            option value="m">
                Male
            </option>
        

        <
            option value="f">
                Female
            </option>
        

</select>



    </div>



and rendered as an empty select (tested with ie and firefox). This caused by a typo in the select_tag template:


        [% ELSE %] <
                option value="[% option.value %]"[% 
process_attrs(option.attributes) %]>
                [% option.label %]
            </option>
        [% END %]

I simply changed to the next version:

        [% ELSE %]
            <option value="[% option.value %]"[%
process_attrs(option.attributes) %]>
                [% option.label %]
            </option>
        [% END %]

and the selectable list works. I'm using HTML-FormFu-0.06001.


--
Gabor HALASZ <halas...@freemail.hu>

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to