jquery禁用dropdownlist中某一项

刚刚写出来的,分享一下:
function EnableSelected(lbcode) {
    var obj = $('#ddl_sPCode');
    var len = $('select[@name=ddl_sPCode] option').length;
    $('select[@name=ddl_sPCode] option').each(function () {
        if ($(this).val() == lbcode) {
            $(this).attr('disabled', true);
        }
    });
}
原文地址:https://www.cnblogs.com/qq1223558/p/3056599.html