Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson 11 #3

Open
wants to merge 2 commits into
base: lesson-10
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ <h1>New User Signup</h1>
<form>

<input type="text" name="username" placeholder="username">
<p>Username must be alphanumeric and contain 5 - 12 characters</p>
<p>Username must be and contain 5 - 12 characters</p>

<input type="text" name="email" placeholder="email">
<p>Email must be a valid address, e.g. [email protected]</p>

<input type="password" name="password" placeholder="password">
<p>Password must uppercase & lowercase, contain at least one number & contain 8 - 20 characters</p>
<p>Password must alphanumeric (@, _ and - are also allowed) and be 8 - 20 characters</p>

<input type="text" name="telephone" placeholder="telephone">
<p>Telephone must be a valid UK telephone numbers (10 digits)</p>
<p>Telephone must be a valid UK telephone number (11 digits)</p>

<input type="text" name="slug" placeholder="profile slug">
<p>Slug must contain only lowercase letters, numbers and hyphens</p>
<p>Slug must contain only lowercase letters, numbers and hyphens and be 8 - 20 characters</p>

</form>
<script type="text/javascript" src="validation.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion validation.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// validation script here
var myregex = /[a-z]+[0-9]+/ig;