Jquery利用is判断多选框是不是被选中

如题所述

<input type="checkbox" name="newsletter" id="test">

if($("#test").is(":checked")){
alert("选中");

}
else{
alert("没选中");

}
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答