I have a CFSELECT box that is hard coded with all 50 state names (abbreviations). I'd like to pre-select or highlight the state that exists for each record as it comes up. The box list exists to allow changes to be made.
I've tried using "selected" and "display" but no luck. Any ideas? Thanks.
George K
<cfselect name="state"
size="1"
message="Please enter a two character state abbreviation."
value="#UCase(trim(getcustinfo.state))#"
selected=="#UCase(trim(getcustinfo.state))#"
required="Yes"
display=="#UCase(trim(getcustinfo.state))#">
<option value ="AL">ALABAMA
<option value ="AK">ALASKA
etc.
I've tried using "selected" and "display" but no luck. Any ideas? Thanks.
George K
<cfselect name="state"
size="1"
message="Please enter a two character state abbreviation."
value="#UCase(trim(getcustinfo.state))#"
selected=="#UCase(trim(getcustinfo.state))#"
required="Yes"
display=="#UCase(trim(getcustinfo.state))#">
<option value ="AL">ALABAMA
<option value ="AK">ALASKA
etc.