replace specific tag name javascript
<p>I want to know if we can change tag name in a tag rather than its content.  i have this content</p>

<pre><code>&lt; wns id="93" onclick="wish(id)"&gt;...&lt; /wns&gt;    
</code></pre>

<p>in wish function i want to change it to</p>

<pre><code>&lt; lmn id="93" onclick="wish(id)"&gt;...&lt; /lmn&gt;
</code></pre>

<p>i tried this way</p>

<pre><code>document.getElementById("99").innerHTML =document.getElementById("99").replace(/wns/g,"lmn")
</code></pre>

<p>but it doesnot work.
plz note that i just want to alter that specific tag with specific id rather than every wns tag..</p>

<p>Thank you.</p>
