Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

"select" state ?

LEGEND ,
Nov 08, 2006 Nov 08, 2006
I have a mutli select form fields e.g.:

<select name="Location" multiple="multiple" >
<option value="8">Anglesey</option>
<option value="11">Cheshire</option>
<option value="5">Conwy</option>
</select>

say i select the first 2 of the 3 options and submit my page e.g. :

mypage.asp?Location=8&Location=11

how would i then set the state of the options to selected e.g. :

<option value="8" selected="selected">Anglesey</option>
<option value="11" selected="selected">Cheshire</option>
<option value="5">Conwy</option>

help and suggestions appreciated


TOPICS
Server side applications
208
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 10, 2006 Nov 10, 2006
LATEST
What type of code are you using, ASP VbScript, PHP, etc.?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines