jquery判断checkbox是否选中
if($(“input[type=’checkbox’]”).is(‘:checked’)) {
alert(“选中”);
}
else
{
alert(“未选中”);
jquery设置select的默认项
$(“#ID”).find(“option[text='”+str+”‘]”).attr(“selected”, true);
« 超强大:用css在单个div上绘图
jquery 判断radio是否选中 »
要发表评论,您必须先登录。
0 条评论。