how does js implement when the first select selects 2, the first optionvalue of the second select becomes 2, automatically Filter disables value=1 "s option?
online, etc., urgent
<select id="s1" onchange="bb()">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>
<select id="s2">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>
<script type="text/javascript">
var s1Val=$("-sharps1 option:selected");
var s2Val=$("-sharps2 option:selected");
function bb(){
console.log(s1Val.val());
}
</script>