问题标签 [bootstrapvalidator-1000hz]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
222 浏览

javascript - Bootstrapvalidator does not work in dynamic input fields

I use Bootstrapvalidator to validate a form that has a number of dynamic input fields. The number of input fields displayed depends on the value of the selected comboBox (select), which then displays a number of input fields through Ajax.

At the change of comboBox (select) value the first time Bootstrapvalidator works, but at the next comboBox (select) change, Bootstrap validator does not work.

Is there a solution to overcome this problem?

OnChange ComboBox (select)

Function called after OnChange

Example of dynamic input fields generated from OnChange ComboBox (select)

0 投票
0 回答
75 浏览

javascript - Bootstrap 自定义验证

我正在尝试使用 1000hz 引导验证器为电子邮件添加自定义验证,如果电子邮件字段的值在另一个字段中重复,我想生成验证。

到目前为止,这是我的代码:

当我在输入字段中输入任何内容时,什么都没有发生

0 投票
0 回答
150 浏览

html - 自定义验证 1000hz 引导验证器

我实现了一个自定义验证功能,它可以正确验证,但问题是即使该字段无效,我也可以成功提交表单。

这是我的代码:

和自定义验证器功能:

和输入字段html代码: