-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (84 loc) · 2.42 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SignUp</title>
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/sigup.css">
<!--JQuery Links-->
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.0/jquery.validate.min.js"></script>
<script>
$(document).ready(function () {
$("#signupform").validate({
rules: {
email: {
required: true
},
password: {
required: true,
minlength:6
},
contact:{
required:true,
minlength:10,
maxlength:10,
},
repassword:{
required:true,
minlength:6,
}
},
messages: {
email: {
required: "Email is required"
},
password: {
required: "Password is required",
minlength:"Password must be of at least 6 characters"
},
contact:{
required: "Contact No. is required",
minlength:"Provided length is not valid",
maxlength:"Provided length is not valid"
},
repassword:{
required:"Re-password is required",
minlength:"Re-password must be same as Password",
}
},
submitHandler: function (form) { // for demo
document.location.href = "home.html";
}
});
});
</script>
</head>
<body class="align">
<div class="grid align__item">
<div class="register">
<img src="images/icons8-registration-48.png">
<h2>Sign Up</h2>
<form action="home.html" class="form" id="signupform">
<div class="form__field">
<input type="email" placeholder="Email" name="email">
</div>
<div class="form__field">
<input type="tel" placeholder="Contact No." pattern="[0-9]{10}" name="contact">
</div>
<div class="form__field">
<input type="password" placeholder="Password" name="password">
</div>
<div class="form__field">
<input type="password" placeholder="Re-Password" name="repassword" >
</div>
<div class="form__field">
<input type="submit" value="Sign Up"s>
</div>
</form>
<p>Already have an accout? <a href="login.html">Log in</a></p>
</div>
</div>
</body>
</html>