📜  https:stackoverflow.com questions 23318361 remove-a-dropdown-value-that-has-been-selected-from-another-dropdown-menu - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:32.200000             🧑  作者: Mango

代码示例1
var $selects = $("select");

$selects.on("change", function(){
    var value = this.value;
    
    $("option[value='" + value +"']", $selects).prop("disabled", true);    
});