I have two select elements. both options have the same meaning. when I select an option from selection window 1, it should disable all previous selection options from the second selection window. Suppose I have this choice:
<select id="s1"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> <select id="s2"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select>
If I select 3 from the s1 window, it should disable all previous options from the s2 selection. if I select value 2 from s1, it should disable all previous values ββin s2.
Note It should not disable the following values, only the previous ones. I am looking for a jquery
solution.
source share