jquery判断checkbox是否选中
if($(“input[type=’checkbox’]”).is(‘:checked’)) {
alert(“选中”);
}
else
{
alert(“未选中”);
jquery设置select的默认项
$(“#ID”).find(“option[text='”+str+”‘]”).attr(“selected”, true);
« JQuery中$.ajax()方法参数详解
万一安卓过时了怎么办 程序员如何投资自己的未来 »
要发表评论,您必须先登录。
0 条评论。