1

Hi i have this code that will hide an option once its already selected by other select tags on the same page, the problem now is that when a lot of the options have been selected the height of the drop down decreases to the point where the other选择不再可见。有没有办法让下降的高度停止下降?

谢谢你。

隐藏功能:

function updateOthers2(val) {
    $("option").show();
    $(".tblboxes").each(function (i) {
        var obj = $("option[value='" + $(this).val() + "']");
        if ($(this).val() != "") obj.hide();
    });
}
4

0 回答 0