[PHPTAL] Selected attribute in select list
Daniel Lima
daniel.lima at cilens.info
Tue Apr 28 00:29:13 CEST 2009
The way you USA should work, but try this:
<tal:block tal:repeat="c categories">
<option tal:attributes="value c/id;selected php: f.categoryid == c.id"
tal:content="c/category"></option>
</tal:block>
Daniel Lima
Web Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/phptal/attachments/20090428/287be36c/attachment.htm
More information about the PHPTAL
mailing list