Dear All,

I'm using the excellent CFJS plugin from Chris Jordan (see <http://
tinyurl.com/yr66lp>) to ease some string functions in my web pages.
I'm running into a problem when using Replace() or ReplaceNoCase():
the original substring won't get deleted from the final output.  Here
you are some code:

1) The original HTML code:
<div class="Menu2L">
        <a href="http://site.com/url.html";>S&amp;P/Mib</a> | <a
href="url2.html">       Midex</a> | <a href="url3.html"> All Stars</a>
</div>

2) I will try to get rid of the vertical bar  -->  |  using a script
like this:
var newstring = $.Replace($("DIV.Menu2L").html(), " | ", "Foo",
"All");
$("DIV.Menu2L").html(newstring);

3) The resulting code:
<div class="Menu2L">
        <aFoo

Reply via email to