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);
}
});
}