field-value
filter, via the
Transformer plugin
, for example
getElementValue
(
field
:
String
,
ele
:
HTMLElement
,
validator
:
String
)
:
String
| Parameter | Type | Description |
|---|---|---|
field
*
|
String
|
The field name |
ele
*
|
HTMLElement
|
The field element |
validator
|
String
|
The validator name |
const
fv
=
FormValidation
.
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
const
elementValue
=
fv
.
getElementValue
(
...
)
;
import
{
formValidation
}
from
'/path/to/-validation/cjs/bundle/popular'
;
const
fv
=
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
const
elementValue
=
fv
.
getElementValue
(
...
)
;
import
{
formValidation
}
from
'-validation/bundle/popular'
;
const
fv
=
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
const
elementValue
=
fv
.
getElementValue
(
...
)
;