jquery:
<div id="divId" class="divTable"> <div class="tableBody"> <ul ><li ><input type="checkbox" value="501" ></li></ul> </div> </div>
$("input[type='checkbox']").attr('value')
返回結果:501
$("input[type='checkbox']").is(':checked')
返回結果:選中=true,未選中=false
js:
if(document.getElementById("checkboxID").checked){ alert("checkbox is checked"); }
