0

解决方案删除选择中的选项

我有一个表格,我希望用户从 10 个选项的列表中对他们的“前 3 名”进行排名。

为了验证响应,我想在十项中的每一项旁边都有一个下拉菜单。使用选项 1 到 3 - 但是,当用户从任何选项中选择“1”时,所有下拉列表都会更新为仅显示选项 2 和 3。

Similarly, when a users chooses option 3 for any one of the ten, the remaining drop downs are updated to only show option 2 and when that is selected all remaining drop downs are updated to show nothing or disabled.

我过去通过 Javascript 使用过动态下拉菜单,但没有达到这种复杂程度 - 欢迎任何想法或想法、代码示例或替代方案(Ajax 等)!

谢谢,

H。

4

1 回答 1

1

试试 - stackoverflow.com/questions/11071562/remove-option-in-select

您也可以尝试广播组-

<input type="radio" name="first" value="choice1">
<input type="radio" name="second" value="choice1">
<input type="radio" name="third" value="choice1">

<input type="radio" name="first" value="choice2">
<input type="radio" name="second" value="choice2">
<input type="radio" name="third" value="choice2">

....
于 2012-11-05T16:03:35.430 回答