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').

上一篇:asp.net Linq 实现分组查询


下一篇:关于size_t与size_type