jquery常用标签
1.type="radio"
单选按钮选中 $("input[name='sendStyle'][value=0]").attr("checked",true);
单选按钮值 var importantLv = $("input:radio[name='zyjb_"+priceItemId+"']:checked").val();
2.数组
var priceItemIdArray = [];
3.type="checkbox"
$("input[name='createArticle']:checkbox").each(function(){
if ("checked" == $(this).attr("checked") || true ==$(this).attr("checked")) {
var proItemId = $(this).val();
}
});//多选循环
var dd=$("input[name='createArticle']:checked").length;
var lastPriceItemId = $("input[name='createArticle']:checked").last().val();
4.table、div
$("#article_combineSend").html();
$("#article_combineSend").html(html);
$("#article_"+priceItemId).show();
$(".articleTable").hide();
5.each循环
$.each(data,function(index,obj){
});
6.parents
$("#"+priceItemId+"_area_"+num).parents(".sel_box").hide();
7.next
$(this).hide().next("div").show();
8.remove
$('#newqiye1_'+priceItemId).children().remove();
9.removeAttr
$("#zyjbIpt_"+priceItemId).removeAttr("checked");
10.input 取值
var classid = $("#classid_"+priceItemId).val();

浙公网安备 33010602011771号