I am trying to create a system username that consists of the first alphabetic characters found in the Family name, street address, Given name; the numerical day of the month; and t
Solution 1:
Try changing
addy=addy.replaceAll("[0-9]","");
with
addy = addy.replace(/[0-9]/g, "");
Or, to get the first letter (not number, symbol, etc.), use:
addy = addy.replace(/[^A-Za-z]/g, "");
Good luck!
Share
Post a Comment
for "Stuck On Javascript Username Generator"
Post a Comment for "Stuck On Javascript Username Generator"