代码如下:

  <label> <input type="checkbox" name="PartEdge2" value="false" id="PartEdge2" class="i-checks"> 汽车配件</label>
if($('#PartEdge2').is(':checked')) {
// do something
}

获取:
alert($(
'#PartEdge2').is(':checked'))

   
赋值:
$('#PartEdge2').attr("checked",true)

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-12-23
  • 2021-10-11
  • 2021-12-07
  • 2022-01-18
猜你喜欢
  • 2022-02-22
  • 2022-12-23
  • 2021-06-13
  • 2021-10-10
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案