off
(
event
:
String
,
func
:
Function
)
:
Core
| Parameter | Type | Description |
|---|---|---|
event
*
|
String
|
The event name |
func
*
|
Function
|
The event handler |
const
fv
=
FormValidation
.
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
const
invalidFieldHandler
=
function
(
field
)
{
// `field` is name of invalid field
...
}
;
fv
.
off
(
'core.field.invalid'
,
invalidFieldHandler
)
;
import
{
formValidation
}
from
'/path/to/-validation/cjs/bundle/popular'
;
const
fv
=
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
const
invalidFieldHandler
=
function
(
field
)
{
// `field` is name of invalid field
...
}
;
fv
.
off
(
'core.field.invalid'
,
invalidFieldHandler
)
;
import
{
formValidation
}
from
'-validation/bundle/popular'
;
const
fv
=
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
const
invalidFieldHandler
=
function
(
field
)
{
// `field` is name of invalid field
...
}
;
fv
.
off
(
'core.field.invalid'
,
invalidFieldHandler
)
;