event
object contains the following properties:
| Property | Type | Description |
|---|---|---|
element
|
HTMLElement
|
The field element which is being validated |
elements
|
HTMLElement[]
|
The field elements |
field
|
String
|
The field name |
validator
|
String
|
The validator name |
const
fv
=
FormValidation
.
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
fv
.
on
(
'core.validator.validating'
,
function
(
event
)
{
...
}
)
;
import
formValidation
from
'formvalidation/dist/es6/core/Core'
;
const
fv
=
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
fv
.
on
(
'core.validator.validating'
,
function
(
event
)
{
...
}
)
;