select的disabled状态更改后样式并没有相应修改,找到原因是select需要selectnemu(”disable“)和selectmenu("enable")刷新而不是removeAttr("disabled")和selectmenu("fresh")

之前为:

$("input[name=a").click(function(){
var value = $("input[name=a]:checked").val();
alert(value)
if(value==1){
tr.find("select[name=b],select[name=c]").attr("validate",".+").removeAttr("disabled").val("").change();
}else if(value==2){
tr.find("select[name=provinceid],select[name=finalInputHospitalid]").removeAttr("validate").attr("disabled",true).val("").change();
}

});

修改为以下后正常:
$("input[name=a").click(function(){
var value = $("input[name=a]:checked").val();
if(value==1){
tr.find("input[name=ImplantedTime],select[name=ImplantedModelid]").attr("validate",".+").removeAttr("disabled").selectmenu();
}else{
tr.find("input[name=ImplantedTime],select[name=ImplantedModelid]").removeAttr("validate").attr("disabled",true).selectmenu();
}

});

相关文章:

  • 2021-10-19
  • 2021-11-17
  • 2021-05-01
  • 2022-01-29
  • 2021-11-13
  • 2021-06-03
猜你喜欢
  • 2021-06-06
  • 2021-09-30
  • 2021-11-27
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案