Getting Started
Events

getElements() method

Return an array of field elements by given field name
            
getElements ( field : String ) : HTMLElement [ ]
(* denotes a required parameter)
Parameter Type Description
field * String The field name
Using in the browser
            
const fv = FormValidation . formValidation (
document . getElementById ( 'demoForm' ) ,
{
...
}
) ;
const elements = fv . getElements ( ... ) ;
Using with ES6 module
            
import formValidation from 'formvalidation/dist/es6/core/Core' ;
const fv = formValidation (
document . getElementById ( 'demoForm' ) ,
{
...
}
) ;
const elements = fv . getElements ( ... ) ;

See also