/RegexValidation

Name Validation html/JS

Primary LanguageJavaScript

"# RegexValidation" Requirements Leverage your knowledge of the JavaScript programming language to write a function that checks the input of a user's name for the proper format.

Within your HTML file, add the following

Create a form that asks the user to input their first and last name

Your HTML page should include instructions based on your function. For example:

Please Enter Your First and Last Name

Within your JS file, add the following:

Write a function that does the following: Pulls in the users information using the DOM from the HTML form Checks the following against the user's form information using Regex: The first letter of both first name and last name should be capitalized. The user must enter more than one character for first name and last name. No special characters should be used.