2014-05-08 51 views

回答

2
$('a').removeClass("addAnother"); 

如果你问如何删除元素:

$('.addAnother').remove(); 
1

您需要使用.remove()

从DOM中删除一组匹配的元素。

$('.svg_selector').remove(); 

,如果您有其他元素具有相同的类和仅定位锚:

$('a.svg_selector').remove(); 
2
$('.addAnother').each(function(){ 
    this.remove(); 
});