例如:判断id为“tb_sample”的表格每一个“tr”是否都设置了id
$('#tb_sample tbody tr').each(function(){
if(typeof($(this).attr('id')) == 'undefined'){
alert("不存在");
}
});
例如:判断id为“tb_sample”的表格每一个“tr”是否都设置了id
$('#tb_sample tbody tr').each(function(){
if(typeof($(this).attr('id')) == 'undefined'){
alert("不存在");
}
});