我想知道是否可以做一个动态下拉列表。假设我got 3 dynamic dropdown
的值为三个用户,我希望它灵活。
e.g
:
dropdown1 : UserA, UserB and UserC
dropdown2 : UserA, UserB and UserC
dropdown3 : UserA, UserB and UserC
if selected from dropdown1 = UserC,
dropdown2 and dropdown3 will list out the remaining user UserA and UserB,
and at the same time when selected from dropdown3 = UserA then the dropdown1 listed 2 user = UserB and UserC and dropdown2 will list only 1 user UserB.
我知道这很棘手,但是可以使用 javascript 或使用 AJAX 创建吗?