![]() |
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 $ *} |
Re: Default drop down menu selection
hi glsp,
For a default title try... {foreach from=$titles item=v} <option value="{$v.title_orig|escape}"{if $field eq $v.titleid} selected="selected"{elseif $v.titleid eq 3} selected="selected"{/if}>{$v.title}</option> {/foreach} 'elseif' should be one word unlike 'else if' Hope this helps. |
Re: Default drop down menu selection
Bingo! That was it. Thanks so much!
|
All times are GMT -8. The time now is 07:38 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.