Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Contact Form"
Bootstrap 3.3.0 Snippet by
MikeClark
3.3.0
jQuery
contact
Preview
HTML
CSS
JS
View Full Screen
Fork
Fork this
5.8K
 
3 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <a class="anchor" id="a-contact"></a> <section style="margin-bottom:30px;"> <div class="container"> <div class="sectionTitle">Let's Chat!</div> <div class="row "> <form id="contactForm" role="form" action="#a-contact" method="post"> <div class="col-lg-offset-1 col-lg-8 col-sm-12 panel"> <p class="hook"><em>Are you ready to hire an experienced web developer? That's great! I look forward to hearing from you.</em> </p> <div class="col-md-12" <?php echo (MailErr::$Status===MailStatus::NotSentYet ? " style='display:none;'" : "") ?>> <div class="alert alert-success" <?php echo (MailErr::$Status===MailStatus::Successful ? "" : " style='display:none;'" ) ?>><strong><span class="glyphicon glyphicon-send"></span> Success! Message sent.</strong></div> <div class="alert alert-danger" <?php echo (MailErr::$Status===MailStatus::Failed ? "" : " style='display:none;'" ) ?>> <span class="glyphicon glyphicon-alert"></span><strong> Error! <?= MailErr::Message(); ?></strong></div> </div> <div class="form-group"> <label for="InputName">Your Name</label> <div class="input-group"> <input type="text" class="form-control" name="InputName" id="InputName" placeholder="Enter Name" required /> <span class="input-group-addon"><i class="glyphicon glyphicon-ok "></i></span></div> <div class="help-block with-errors"></div> </div> <div class="form-group"> <label for="InputEmail">Your Email</label> <div class="input-group"> <input type="email" class="form-control" id="InputEmail" name="InputEmail" placeholder="Enter Email" required /> <span class="input-group-addon"><i class="glyphicon glyphicon-ok "></i></span></div> <div class="help-block with-errors"></div> </div> <div class="form-group"> <label for="InputMessage">Project Description</label> <div class="input-group"> <textarea name="InputMessage" id="InputMessage" class="form-control" rows="5" placeholder="Project Description" required></textarea> <span class="input-group-addon"><i class="glyphicon glyphicon-ok "></i></span> </div> <div class="help-block with-errors"></div> </div> <div class="form-group"> <label for="InputReal">What is 4+3? (Simple Spam Checker)</label> <div class="input-group"> <input type="text" class="form-control" name="InputReal" id="InputReal" data-equals="7" required /> <span class="input-group-addon"><i class="glyphicon glyphicon-ok "></i></span> </div> <div class="help-block with-errors"></div> </div> <div class="form-group"> <input type="submit" name="submit" id="submit" value="Submit" class="btn btn-info pull-right" /> </div> <div class="form-group" style="width:100%;clear:both;"> <span><em><i class="glyphicon glyphicon-ok "></i> Required Field</em></span> </div> </div> </form> </div> </div> </section>
/* section classes */ .sectionTitle { padding: 0 0 0px 70px; margin: 50px 0; position: relative; } .sectionTitle:before { background-color: #33a4c9; border-radius: 25px; content: ' '; display: block; height: 50px; left: 0; position: absolute; top: 0px; width: 50px; } .sectionTitle-font, .sectionTitle { font-size: 2rem; } section { font-size: 1.8rem; }
$(document).ready(function() { $.getScript('https://cdnjs.cloudflare.com/ajax/libs/1000hz-bootstrap-validator/0.11.8/validator.min.js', function() { $('#contactForm').validator({ custom: { equals: function($el) { var matchValue = $el.data("equals") // foo //empty string test if (!$el.val()) return; if ($el.val() != matchValue) { return "Hey, that's not valid! It's gotta be " + matchValue } } } }); }); });
Related:
See More
Free Template
Paper Kit
142.1K
51
Contact Form
204.0K
56
Bootstrap Contact Form
109.5K
48
Bootstrap Contact Form
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76