Skip to main content
Inspiring
November 8, 2006
質問

"select" state ?

  • November 8, 2006
  • 返信数 1.
  • 208 ビュー
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


このトピックへの返信は締め切られました。

返信数 1

Known Participant
November 10, 2006
What type of code are you using, ASP VbScript, PHP, etc.?