jquery remove matching part of string code example Example: jquery remove string from string myString.replace('username1','');