What is the best way to remove all classes and all ids from all div, ul, li, span, a within a div with id="remove"?
An alternative to the other answers using find.
$('#remove').find('div, ul, li, span, a').removeAttr('id').removeAttr('class');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With