The fields below are a mix of .NET MVC rendered and plain HTML5 markup, some woith recyclable server-rendered error nodes, some without that are generated by the library.
$ npm i -S storm-validate
import Validate from 'storm-validate';
Or include dist/storm-validate.standalone.js in a script tag for unobstrusive auto-validation.
let validator = Validate.init('form'); validator.addMethod( 'MyFieldName', //input/input group name (value, fields, params) => { //validation method return value === 'test'; //must return boolean }, 'Value must equal "test"' //error message on validation failure );