|
得到当前节点的第一个子节点$("div").children().eq(0)
多选框循环
$("[name='ids']:checkbox").each(function(){if ($(this).attr("checked")==true){i++;str+=$(this).val()+"_";}});
下拉列表所选的选项中的属性
alert($("#batch_bz option:selected").attr("je"));
css 设置
$("p").css("color","red");
改变兄弟td 内的元素的属性
$(this).parents("tr").find("td").eq(2).find("select").get(0).options.length = 0;
|
|