$("inp:preAprovacao").children().each(function() {
if ($(this).val() != "1. CTINF") {
$(this).hide();
}
});
它正在Chrome上运行,但它在Internet Explorer中根本不起作用。我不知道为什么。
编辑:我用.remove()替换了.hide(),它起作用了。这与将项目隐藏在组合框中有关。
Maby 这能帮助你吗? $(this).css('display','none');