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‘).
时间: 2024-11-04 21:14:41