Using FontAwesome icons

Follow the sample code below to use the icons provided by FontAwesome:
<!-- Put them in the head tag -->
<link rel="stylesheet" href="" />
<link rel="stylesheet" href="/vendors/formvalidation/dist/css/formValidation.min.css" />
<form id="demoForm">...</form>
<script src="/vendors/formvalidation/dist/js/FormValidation.min.js"></script>
document.addEventListener('DOMContentLoaded', function(e) {
fields: {
plugins: {
icon: new FormValidation.plugins.Icon({
valid: 'fa fa-check',
invalid: 'fa fa-times',
validating: 'fa fa-refresh',
If you want to use the FontAwesome SVG icon instead of its CSS classes, take a look at the Using SVG icons example.
Using FontAwesome icons

See also