readonly和disabled属性均不生效。可按如下方式处理,记得引入jquery.js文件

 

<input type="checkbox" name="chk" value="1" checked="checked" />

<input type="checkbox" name="chk" value="2"  />

<input type="checkbox" name="chk" value="3"  />

 

 

<script language="javascript">

$(function(){

  $("input[type='checkbox']").click(function(){

    this.checked = !this.checked;

  });

});

</script> 

 

相关文章:

  • 2021-11-26
  • 2021-09-15
  • 2022-12-23
  • 2021-07-12
  • 2022-02-12
  • 2021-07-11
猜你喜欢
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
相关资源
相似解决方案