MandatoryIcon plugin

Show required icons for mandatory fields


The following piece of code is the starting point to use the MandatoryIcon plugin:

The sample code above assumes that the FormValidation files are placed inside the vendors directory. You might need to change the path depending on where you place them on the server.

For example, to use the plugin with FontAwesome, we can set the icon option as:

Important note

You have to register the MandatoryIcon plugin before the Icon plugin.

Basic example


  • v1.6.0: Fixed an issue that the plugin doesn't work with textarea element
  • v1.0.0: First release

Related validators

The following validators might be useful to you.