I want to know if we can change tag name in a tag rather than its content. i have this content
< wns id=\"93\" onclick=\"wish(id)\">...< /wns>
document.getElementById("93").outerHTML = document.getElementById("93").outerHTML.replace(/wns/g,"lmn");
FIDDLE