我正在tryng得到所有从其中跨度属性没有被定义获取所有不具有跨度属性
$('tr').each(function() {
$(this).find('td').each(function() {
if (($(this).text().trim() == "")) && // and this td not has colspan attribute {
$(this).closest("td").remove();
};
});
});
可能重复[我怎样才能得到元素,而无需通过jQuery的特定属性(http://stackoverflow.com/questions/1073779/how-can-i -get-the-elements-without-a-specific-attribute-by-jquery) – 2012-01-16 10:42:48
你想要移除相同的td或prev td吗? – 2012-01-16 10:50:07
我需要删除相同的TDD – maaz 2012-01-16 10:52:11