I am using Angular with Bootstrap. Here is the code for reference:
I know this is a very old question answer thread when I haven't heard the name of AngularJS itself :-)
But for others who land to this page looking for Angular + Bootstrap form validation in a clean and automated way, I've written a pretty small module for achieving the same without altering the HTML or Javascript in any form.
Checkout Bootstrap Angular Validation.
Following are the three simple steps:
bower install bootstrap-angular-validation --save
bootstrap.angular.validation
to your application and that's it!!This works with Bootstrap 3 and jQuery is not required.
This is based on the concept of jQuery validation. This module provides some additional validation and common generic messages for validation error.