FormValidation v0.8.1 is released, supports Bootstrap 4 alpha 3

Playing with jQuery UI Datepicker


In this example, you will see how to validate the field using the jQuery UI Datepicker plugin.

You should look at the basic principles when integrating FormValidation with other plugins
<link rel="stylesheet" href="//">
<script src="//"></script>

<form id="profileForm" method="post" class="form-horizontal">
    <div class="form-group">
        <label class="col-xs-3 control-label">Date of birth</label>
        <div class="col-xs-5">
            <input type="text" class="form-control" name="dob" />

    <div class="form-group">
        <div class="col-xs-9 col-xs-offset-3">
            <button type="submit" class="btn btn-default">Validate</button>

$(document).ready(function() {
            framework: 'bootstrap',
            icon: {
                valid: 'glyphicon glyphicon-ok',
                invalid: 'glyphicon glyphicon-remove',
                validating: 'glyphicon glyphicon-refresh'
            fields: {
                dob: {
                    validators: {
                        notEmpty: {
                            message: 'The date of birth is required'
                        date: {
                            format: 'MM/DD/YYYY',
                            message: 'The date of birth is not valid'
                onSelect: function(date, inst) {
                    /* Revalidate the field when choosing it from the datepicker */
                    $('#profileForm').formValidation('revalidateField', 'dob');