Reputation: 511
How do I remove every <span> tag with the class "button-label"
<span>
<span class="button-label"></span>
along with its content from the entire webpage using javascript.
Upvotes: 0
Views: 62
Reputation: 4623
can you try this :
$('span.button-label').remove()
this might also work :
$( "span" ).remove( ".button-label" );
check the docs here
Upvotes: 3