Jquery设置selected标签为“disabled”的实用函数
function disabledSpecialIssue()
{
var collection = $("#id").val();
if (collection != "") {
$("#id").prop('disabled', 'disabled');
} else {
$("#id").removeAttr("disabled");
}
}
function disabledCollection()
{
var specialIssue = $("#id").val();
if (specialIssue != "") {
$("#id").prop('disabled', 'disabled');
} else {
$("#id").removeAttr("disabled");
}
}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。