Is it possible to remove all attributes at once using jQuery?
to
This will remove all attributes and it will work for every type of element.
var x = document.createElement($("#some_id").prop("tagName")); $(x).insertAfter($("#some_id")); $("#some_id").remove();