-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.html
42 lines (33 loc) · 1.76 KB
/
form.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
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>formspree with ajax</title>
<link rel="stylesheet prefetch" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<form id="contact-form">
<div class="form-group center-block">
<label for="inputName">Name</label>
<input type="text" class="form-control contact-input" id="inputName" placeholder="Name" name="name"/>
</div>
<div class="form-group center-block">
<label for="inputEmail">Email</label>
<input type="email" class="form-control contact-input" id="inputEmail" placeholder="Email" name="email"/>
</div>
<div class="form-group center-block">
<label for="inputMessage">Message</label>
<textarea id="inputMessage" class="form-control contact-input" rows="3" placeholder="Leave a Message" name="message"></textarea>
</div>
<div class="text-center">
<button class="btn btn-default" type="submit" value="Send">Submit</button>
<div class="alert alert-danger center-block submit-fail display-none">Please fill in all form fields<br><a href="#"><i class="fa fa-long-arrow-left fa-4x"></i></a></div>
<div class="alert alert-success center-block submit-success display-none">Thanks for stopping to say Hello!<br><a href="#"><i class="fa fa-long-arrow-left fa-4x"></i></a></div>
</div>
<span></span>
</form>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="js/form-ajax.js"></script>
</body>
</html>