jquery select chosen禁用某一项option

来源:互联网 发布:淘宝朋友代付退款 编辑:程序博客网 时间:2024/06/05 12:05
$("#tbParBudCode").chosen().change(function () {                 $("#tbParBudCode option[value='" + $("#hidBudCodeID").val() + "']").attr("disabled", "disabled");    $("#tbParBudCode").chosen("destroy").chosen();    //$("#tbParBudCode").val("" + parm.BudgetCodeID + "").trigger("chosen:updated");                // $("#tbParBudCode").trigger("chosen:updated");     });