jQuery convert text into inputfields
<p>On my page i have a couple of tags that looks like this:</p>

<pre><code>&lt;parameter name="address" class="transform"&gt;@ViewBag.Address&lt;/parameter&gt;
</code></pre>

<p>To do that i have created this function:</p>

<pre><code> function transform(id) {
     $('#' + id + ' .transform').each(function (index) {
         var tag = $(this).parent().html();
         $(this).parent().html() = tag.replace('parameter','input type="text"');
     });
 }
</code></pre>

<p>Now, if i alert $(this).parent().html() i get the original tag, but the function doesn't work. What am i doing wrong?</p>
