.form-group
element and determine where it can display the error message and feedback icons.In our case, since the fields are placed inside a table cell which is a
td
element, we need to let the plugin know about it:
const
form
=
document
.
getElementById
(
'demoForm'
)
;
const
fv
=
FormValidation
.
formValidation
(
form
,
{
fields
:
{
...
}
,
plugins
:
{
bootstrap
:
new
FormValidation
.
plugins
.
Bootstrap
(
{
rowSelector
:
function
(
field
,
ele
)
{
return
'td'
;
}
,
}
)
,
}
,
}
)
;
td
.fv-plugins-icon
{
right
:
10
px
;
top
:
10
px
;
}