Prevent Multiple Selections of Same Value

后端 未结 7 737
渐次进展
渐次进展 2020-12-09 06:36

I am working on a project where I have a form that will have multiple \'select\' inputs, all with the same set of options. I would like to use jquery to disable/hide an opt

7条回答
  •  萌比男神i
    2020-12-09 07:32

    Take a look at this. It:

    1. gets the ID of the dropdown you just changed
    2. loops through all the select lists
    3. delete the item you just selected from all the other lists

提交回复
热议问题