remove 1 character from element javascript code example Example: javascript remove character from string mystring.replace(/r/g, '')