event
object contains the following property:
| Property | Type | Description |
|---|---|---|
formValidation
|
Core
|
The FormValidation instance |
const
fv
=
FormValidation
.
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
fv
.
on
(
'core.form.validating'
,
function
(
event
)
{
// `event.formValidation` is the FormValidation instance
// which is the same as `fv`
}
)
;
import
{
formValidation
}
from
'/path/to/-validation/cjs/bundle/popular'
;
const
fv
=
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
fv
.
on
(
'core.form.validating'
,
function
(
event
)
{
// `event.formValidation` is the FormValidation instance
// which is the same as `fv`
}
)
;
import
{
formValidation
}
from
'-validation/bundle/popular'
;
const
fv
=
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
fv
.
on
(
'core.form.validating'
,
function
(
event
)
{
// `event.formValidation` is the FormValidation instance
// which is the same as `fv`
}
)
;