Set the selected attribute on a select box

[ permalink ] [ download ]
<option value="this_value" tal:attributes="selected python:test(my_value=='this_value','selected',)">this value</option>
hits counter