I am trying to remove a string from a string in jQuery.
Here is the string:
username1, username2 and username3 like this post.
I would
To add on nathan gonzalez answer, please note you need to assign the replaced object after calling replace function since it is not a mutator function:
replace
myString = myString.replace('username1','');