Friday, November 16, 2012

javascript replace space

str = str.replace(" ", "-"); or, better: str = str.replace(/\s/g, "-");

No comments:

Post a Comment