input checkbox复选框实现选中和取消选中的事件
html
<input type="checkbox" class="barcodeSavePrint" />
js
$(function () {
$(".barcodeSavePrint").click(function () {
if (this.checked==true){
alert("选中");
}else{
alert("不选中");
}
})
})
input checkbox复选框实现选中和取消选中的事件
html
<input type="checkbox" class="barcodeSavePrint" />
js
$(function () {
$(".barcodeSavePrint").click(function () {
if (this.checked==true){
alert("选中");
}else{
alert("不选中");
}
})
})
有建议,请留言!