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
$(content).replaceAll(target);
My question is: how do you refer to the target object? In other words, in the following code, what should I replace TheCurrentLink with?
$('<input>').attr('value', TheCurrentLink.href}).replaceAll($("a"));
You need to do something more like this: