I think you would be best off with a Regular Expression:
var f = $("#fruits");
f.html( f.html().replace(/;/g,"") );
"/g enables "global" matching. When using the replace() method,
specify this modifier to replace all matches, rather than only the
first one."
http://www.regular-expressions.info/j
You'll probably want to set the "global" flag and use regex notation.
var f = $('#fruits');
f.html(f.html().replace(/;/g, ""));
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 10, 2009, at 5:23 PM, jc_2009 wrote:
Hi,
How to do a find and replace wit
2 matches
Mail list logo