![]() |
![]() |
Please forgive my ignorance, but I've been trying
to get the following snippet of code working for the past 3 days with no
success. I'm simply try to set an <option> to selected in a
loop. Here is the snippet of code:
[list]
[if value [value-extended name="mv_searchspec" index="0"] eq [loop-code]] <OPTION selected VALUE="[loop-code]">[loop-pos 1] [else] <OPTION VALUE="[loop-code]">[loop-pos 1] [/else] [/if] [/list] This list populates a combo box with a list of
states. I would like to default the selection to the current value of
mv_searchspec.
Tom
|