Skip to content

Instantly share code, notes, and snippets.

@sarkarshuvojit
Last active December 4, 2017 23:58
Show Gist options
  • Save sarkarshuvojit/6308c6daf742028a138159ebe9aa6124 to your computer and use it in GitHub Desktop.
Save sarkarshuvojit/6308c6daf742028a138159ebe9aa6124 to your computer and use it in GitHub Desktop.
Art of Laziness — Form Validation HTML
...
<div class="form-group">
<input type="text" class="form-control form-validate" placeholder="Your First Name" data-error-message="Please enter your name">
</div>
<div class="form-group">
<input type="text" class="form-control form-validate" placeholder="Your Last Name" data-error-message="Please enter your surname">
</div>
...
...
<div class="form-group">
<input type="text" class="form-control form-validate" placeholder="City" data-error-message="Please enter the city name">
</div>
<div class="form-group">
<input type="text" class="form-control" placeholder="Notes">
</div>
<div class="form-group">
<input type="password" class="form-control form-validate" placeholder="Password" data-error-message="Please enter your password">
</div>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment