SyntaxFix
Write A Post
Hire A Developer
Questions
To remove the special characters, try
var name = name.replace(/[!@#$%^&*]/g, "");