Using Semantic UI framework icons

The Semantic UI framework provides an icon set which can be used with the Icon plugin.
Followed by the suggestion from Semantic UI, the input must place inside ui input icon element:
<div class="ui input icon">
<input type="text" name="name" />
Below is a starting point to use the Icon plugin along with the Semantic plugin:
<!-- 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>
<script src="/vendors/formvalidation/dist/js/plugins/Semantic.min.js"></script>
document.addEventListener('DOMContentLoaded', function(e) {
fields: {
plugins: {
semantic: new FormValidation.plugins.Semantic(),
icon: new FormValidation.plugins.Icon({
valid: 'checkmark icon',
invalid: 'remove icon',
validating: 'refresh icon',
Using Semantic UI framework icons

See also