JavaScript: Delete a div by its class name

From The Travis van der Font Wiki
Jump to: navigation, search
Using jQuery, the best way to delete all divs with a certain class name:
Note: This can be done with anything, not just limited to a div. Simply replace div with p or span, etc.