<select id="salesfrom-job_title" >
<option value="">请选择</option>
<option value="0">不禁用</option>
<option value="1">禁用</option>
</select>
<select id="salesfrom-f_id" >
<option value="">请选择</option>
<option value="1">测试1</option>
<option value="4">测试2</option>
</select>
<script>
$("#salesfrom-job_title").on('change',function(){
var jobtitle = $(this).val();
var selectfid = $("#salesfrom-f_id");
if(jobtitle == 1){
selectfid.attr("disabled","disabled");
}else{
selectfid.attr("disabled",false);
}
});
</script>