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>
You can achieve this by using JavaScript or jQuery.
We can delete the DOM Element(tag in this case) and recreate using .html or .append menthods in jQuery.
$("#div-name").html("Content here");
OR
$("Content here").appendTo("#div-name");