This is an old revision of the document!
revalidateField method.$(form).formValidation('revalidateField', fieldName);on('hide.bs.modal'$('#modalDetails').on('hide.bs.modal', function (event) {
$("#modalForm").formValidation('resetForm', true);
});$('#modalForm-2').formValidation('addField', 'hotel_checkin', {
validators: {
remote: {
url:'/ajax/getdata.php',
data: function(validator, $field, value) {
// validator is FormValidation instance, $field is the field element, value is the field value
// Return an object
return {
hotel_checkout: $('input[name="hotel_checkout"]').val(),
request: 'validate_hoteldates'
}
}
}
}
});type="date" or data-fv-date="true"MM/DD/YYYY, use data-fv-date-format="YYYY-MM-DD"min= and max= is not supported (use data-fv-date-min= and data-fv-date-max=)