View Single Post
  #1  
Old 03-30-2008, 07:57 AM
 
glsp glsp is offline
 

Member
  
Join Date: Dec 2007
Location: Northampton, MA
Posts: 27
 

Default Default drop down menu selection

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!
__________________
X-Cart Gold version 4.1.9

PS: This is what part of the alphabet would look like if Q and R were eliminated.
Reply With Quote