add text-box on click of link
<p>I need to add a text-box (within a container) on click of link.
Text-box will have value equal to 'href' of a link</p>

<p>My jQuery code is like:</p>

<pre><code> jQuery("a.link").click(function(event){
    jQuery('#link-container-text').text('&lt;input type="text" onclick="this.select();" value="' + this.href + '" /&gt;');
  });
</code></pre>

<p>But instead of showing the text-box, it's showing me HTML code. </p>

<p>I need text-box, not HTML code.</p>

<p><strong>EDITED</strong></p>

<p>On click of another link, How can I remove just-added input from #link-container-text.</p>
