Bootstrap Validator使用特性,动态(Dynamic)添加的input的验证问题

http://1000hz.github.io/bootstrap-validator/#validator-usage

Validated fields

By default, the validator will only validate fields that are present when the plugin is initialized. If your form has a dynamic set of fields, you will need to call $(...).validator('update') to inform the plugin that the set of fields to be validated has changed.

我用的jquery的clone方法动态生成的row,所以用row.validator('update').

posted @ 2017-06-09 12:03  任国强  阅读(1520)  评论(0编辑  收藏  举报