Skip to content

Commit

Permalink
updatw
Browse files Browse the repository at this point in the history
  • Loading branch information
arfhad-shaikh committed Jul 29, 2021
1 parent 6b2aed8 commit 1a95630
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 0 additions & 7 deletions Test.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,6 @@ <h3>Password must contain the following:</h3>
}

email.onkeyup = function() {
var numbers = /[0-9]/g;
if(email.value.match(numbers)) {

alert("Invalid Input");
email.value ="";
}

// Sanitize for Special Char except @
var specialchar = /[!#$%^&*+`~=?\|<>/]/g;
if(email.value.match(specialchar)) {
Expand Down
6 changes: 3 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pre {
}

/* -------------------Contact Form--------------------------*/
input[type=text], select, textarea, input[type=password] {
input[type=text], select, textarea, input[type=password], input[type=email]{
width: 100%;
padding: 12px;
border: 1px solid #ccc;
Expand Down Expand Up @@ -277,7 +277,7 @@ li.active > button.nav-button {
}*/

/* Full-width input fields */
input[type=text], input[type=password] {
input[type=text], input[type=password], input[type=email] {
width: 100%;
padding: 15px;
margin: 5px 0 22px 0;
Expand All @@ -287,7 +287,7 @@ input[type=text], input[type=password] {
}

/* Add a background color when the inputs get focus */
input[type=text]:focus, input[type=password]:focus {
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus {
background-color: #ddd;
outline: none;
}
Expand Down

0 comments on commit 1a95630

Please sign in to comment.