I want the default selected item in a drop down menu to be something other than the first item in the list. Can anyone tell me why the following code doesn't work?
Code:
{* $Id: title_selector.tpl,v 1.3 2005/11/30 13:29:35 max Exp $ *}
{foreach from=$titles item=v}
<option value="{$v.title_orig|escape}"{if $field eq $v.titleid} selected="selected"{else if $v.titleid eq 3} selected="selected"{/if}>{$v.title}</option>
{/foreach}
Thanks!