event
parameter presents the field name.
const
fv
=
FormValidation
.
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
fv
.
on
(
'core.field.invalid'
,
function
(
event
)
{
...
}
)
;
import
{
formValidation
}
from
'/path/to/-validation/cjs/bundle/popular'
;
const
fv
=
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
fv
.
on
(
'core.field.invalid'
,
function
(
event
)
{
...
}
)
;
import
{
formValidation
}
from
'-validation/bundle/popular'
;
const
fv
=
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
fv
.
on
(
'core.field.invalid'
,
function
(
event
)
{
...
}
)
;