remove a substring from the strinj jquery code example Example: jquery remove string from string myString.replace('username1','');