Forums / Developer / The select="selected" problem / Comment38141
Björn X
Monday 23 June 2003 9:04:09 pm
Just to give you a rough idea
{let countries=array('Germany','_Norway') selected='Germany' } .... {section loop=$countries} {switch} <option value="{$:item}" {case match=eq($:item,$:selected)} selected {case}{/case} {/swtich} >{$:item}</option>{/section}