Once a dom element is created, the tag is immutable, I believe. You’d have to do something like this:
$(this).replaceWith($('<h5>' + this.innerHTML + '</h5>'));
Once a dom element is created, the tag is immutable, I believe. You’d have to do something like this:
$(this).replaceWith($('<h5>' + this.innerHTML + '</h5>'));