jquery判断checkbox是否选中
if($(“input[type=’checkbox’]”).is(‘:checked’)) {
alert(“选中”);
}
else
{
alert(“未选中”);
jquery设置select的默认项
$(“#ID”).find(“option[text='”+str+”‘]”).attr(“selected”, true);
« Native与H5交互的那些事
$(window).scroll失效解决办法 »
要发表评论,您必须先登录。
0 条评论。