| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Default drop down menu selection | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
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:
__________________
X-Cart Gold version 4.1.9 PS: This is what part of the alphabet would look like if Q and R were eliminated. |
|||||||
|
#2
|
|||||||||
|
|||||||||
|
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.
__________________
Doms kube v4.1.9 |
|||||||||
|
#3
|
|||||||
|
|||||||
|
Bingo! That was it. Thanks so much!
__________________
X-Cart Gold version 4.1.9 PS: This is what part of the alphabet would look like if Q and R were eliminated. |
|||||||
![]() |
|
| Thread Tools | Search this Thread |
|
|
|
|
|||
|
X-Cart forums © 2001-2020
|
|||