且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

禁用基于另一个下拉列表的下拉列表中的多个值

更新时间:2023-01-07 21:53:50

   if (selectedItem) {

    $(selectedItem).each(function(v,i) {

    $dropdown2.find('option[value="' + i + '"]').prop('disabled', true);

    $dropdown3.find('option[value="' + i + '"]').prop('disabled', true);

                                });