Getting Started

getFormElement() method

Return the form element
            
getFormElement ( ) : HTMLElement
Using the global script in the browser
            
const fv = FormValidation . formValidation (
document . getElementById ( 'demoForm' ) ,
{
...
}
) ;
const formElement = fv . getFormElement ( ) ;
Using the ES6 module
            
import { formValidation } from '/path/to/-validation/cjs/bundle/popular' ;
const fv = formValidation (
document . getElementById ( 'demoForm' ) ,
{
...
}
) ;
const formElement = fv . getFormElement ( ) ;
Using the npm package
            
import { formValidation } from '-validation/bundle/popular' ;
const fv = formValidation (
document . getElementById ( 'demoForm' ) ,
{
...
}
) ;
const formElement = fv . getFormElement ( ) ;