0
点赞
收藏
分享

微信扫一扫

jquery select chosen禁用某一项option

大沈投资笔记 2023-03-05 阅读 80


$("#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");
});


举报

相关推荐

0 条评论