Mark's Tech Stuff
Programming solutions, source code, solutions to tech problems and other tech related stuff.
Friday, November 16, 2012
javascript replace space
str = str.replace(" ", "-"); or, better: str = str.replace(/\s/g, "-");
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment