logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: option select in petal - ideas?: msg#00001

Subject: Re: option select in petal - ideas?
Hi Christopher,

Christopher Heschong wrote:
Lets say you have a select statement:

<select name="foo">
 <option tal:repeat="foo bar"
         tal:contents="foo/content"
         tal:attributes="selected foo/selected">option</option>
</select>

The problem is that there is no way for Petal to eliminate the selected
attribute if foo/selected returns false.

Petal should remove the attribute if foo/selected returns undef.

Cheers,
Jean-Michel.



<Prev in Thread] Current Thread [Next in Thread>