码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-06-09 12:36:04      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:zed   input   put   验证   mic   orm   dynamic   validate   code   

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

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

标签:zed   input   put   验证   mic   orm   dynamic   validate   code   

原文地址:http://www.cnblogs.com/rgqancy/p/6890712.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!