Remove first character from a string if it is a comma May 9, 2023 by Tarik text.value = newvalue.replace(/^,/, ''); Edit: Tested and true. This is just one way to do it, though.