jQuery replaceAll() function
<p>I want to replace every link by an input box whose value is the URL of the link. I would like to use the jQuery replaceAll() function. The standard format is</p>

<pre><code>$(content).replaceAll(target);
</code></pre>

<p>My question is: how do you refer to the target object? In other words, in the following code, what should I replace <em>TheCurrentLink</em> with?</p>

<pre><code>$('&lt;input&gt;').attr('value', TheCurrentLink.href}).replaceAll($("a"));
</code></pre>
