Javascript - how to replace a sub-string?

Posted by Jangwenyi on Stack Overflow See other posts from Stack Overflow or by Jangwenyi
Published on 2008-10-31T09:06:24Z Indexed on 2010/04/13 22:23 UTC
Read the original article Hit count: 348

Filed under:
|

This is a simple one. I want to replace a sub-string with another sub-string on client-side using Javascript.

Original string is 'original READ ONLY'

I want to replace the 'READ ONLY' with 'READ WRITE'

Any quick answer please? Possibly with a javascript code snippet...

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about regex