Originally posted by viki1967
[Javascript] Control combination select
Collapse
X
-
A quick question: how are you going to use the values, i.e. if "Frank" is selected, which value do you need? "Frank" or Japan?
If you need the country values for each person, set the values of the options to the corresponding country for each person.Comment
-
Many options are possible but only one option from the second select is valid for each of the first selects.Originally posted by acoderA quick question: how are you going to use the values, i.e. if "Frank" is selected, which value do you need? "Frank" or Japan?
If you need the country values for each person, set the values of the options to the corresponding country for each person.
[html]
<select>
<option value="Frank, Japan">Frank, Japan</option>
<option value="Anthony, Italy">Anthony, Italy</option>
<option value="Max, England">Max, England</option>
<option value="Mark, USA">Mark, USA</option>
<option value="Vincent, Mexico">Vincent , Mexico</option>
<option value="Jim, Spain">Jim, Spain</option>
</select>
[/html]
In the page processing PHP I split the value at ", " and use the separate values.
thanks!Comment
Comment