Reputation: 35
I'm trying to use jQuery to remove all instances of <br type="_moz />
from within a page. I'm completely stuck as to how about accomplishing this.
Upvotes: 0
Views: 89
Reputation: 1039598
You could use an attribute equals selector to match the tags that you want to .remove()
:
$('br[type="_moz"]').remove();
Also fix your markup as it has a missing double quote for the type
attribute:
<br type="_moz" />
Upvotes: 2