Skip to content

About

Javascript Bootstrap Form Validation, a front-end utility designed to check user inputs and enforce data rules in web forms. It provides a seamless user experience to help developers validate user submissions, display instant feedback errors, and ensure accurate data collection.

Topics

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

πŸ“ JavaScript Bootstrap Form Validation


Version Bootstrap License Size


⚑ A lightweight, dependency-free form validation library for Bootstrap 5

🎯 Real-Time Feedback β€’ β™Ώ Fully Accessible β€’ 🎨 Zero-Styling Conflicts β€’ 🌐 i18n Ready


Try It Live Β Β  Download Β Β  Docs

🌟 About

JavaScript Bootstrap Form Validation is a modern, dependency-free validation library that seamlessly integrates with Bootstrap 5. It brings beautiful, accessible, and instant form feedback to any web project β€” without the bloat of heavy frameworks or messy configuration.

Just add data-validate to your form, and you're done. It's that simple.

πŸ’‘ Perfect for: SaaS signups, contact forms, checkout flows, admin panels β€” any form where user experience matters.

🎯 Validation Features

βœ… 40+ Rules 🎨 Bootstrap Native β™Ώ Accessible
Email, phone, URL,
password strength & more
Inherits Bootstrap
styles perfectly
ARIA-compliant
error messages
🌐 i18n Support πŸ”Œ Custom Rules πŸ“¦ Tiny Footprint
15+ built-in
languages
Register your own
validators easily
Under 5kb
minified + gzip

πŸ† Why This Library

πŸ’Ž Advantage πŸ“ Description
⚑ Zero Dependencies Pure vanilla JS β€” no jQuery, no framework, no bloat
🎨 Bootstrap-Native Works with Bootstrap, not against it β€” no CSS conflicts ever
β™Ώ WCAG 2.1 AA Screen-reader tested, keyboard navigation, focus management built-in
πŸš€ Instant Feedback Validates on blur, keystroke & submit β€” no waiting for page reloads
🧩 Extensible Register custom rules in 3 lines of code
🌍 Global-Ready Ready for international forms with automatic RTL support

🎬 Live Preview

╔══════════════════════════════════════════════════╗
β•‘  πŸ“  Sign Up Form                                β•‘
╠══════════════════════════════════════════════════╣
β•‘                                                  β•‘
β•‘  Email                                           β•‘
β•‘  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β•‘
β•‘  β”‚ john@example.com                       βœ…  β”‚  β•‘
β•‘  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β•‘
β•‘                                                  β•‘
β•‘  Password                                        β•‘
β•‘  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β•‘
β•‘  β”‚ β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’                           βœ…  β”‚  β•‘
β•‘  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β•‘
β•‘  βœ“ 12+ characters  βœ“ Uppercase  βœ“ Symbol        β•‘
β•‘                                                  β•‘
β•‘  Confirm Password                                β•‘
β•‘  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β•‘
β•‘  β”‚ β€’β€’β€’β€’β€’β€’β€’                                 ❌  β”‚  β•‘
β•‘  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β•‘
β•‘  ⚠️ Passwords do not match                       β•‘
β•‘                                                  β•‘
β•‘           [ Create Account ]                     β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

🧩 Project Structure

πŸ“ js-bootstrap-form-validation/
β”œβ”€β”€ 🎯 src/
β”‚   β”œβ”€β”€ validator.js           # Core validation engine
β”‚   β”œβ”€β”€ rules/                 # Built-in rules
β”‚   β”‚   β”œβ”€β”€ email.js
β”‚   β”‚   β”œβ”€β”€ password.js
β”‚   β”‚   └── phone.js
β”‚   └── ui/                    # Bootstrap feedback binding
β”œβ”€β”€ 🌐 i18n/                   # 15+ language packs
β”œβ”€β”€ 🎨 themes/                 # Optional visual presets
β”œβ”€β”€ πŸ§ͺ tests/                  # Vitest unit + Playwright e2e
└── πŸ“– docs/                   # Live playground & guides

πŸ› οΈ Tech Stack

JavaScript Bootstrap HTML5 Vitest Playwright

🀝 Community

Found a bug? Want a new rule? Have a translation to share?

πŸ“œ License

Distributed under the MIT License. See LICENSE for details.


⚑ Made with πŸ“ by the Form Validation Team

If this library saves you time β€” drop a star!


About

Javascript Bootstrap Form Validation, a front-end utility designed to check user inputs and enforce data rules in web forms. It provides a seamless user experience to help developers validate user submissions, display instant feedback errors, and ensure accurate data collection.

Topics

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors