2018-07-04 15:02:10   Visit  1409

bootstrapValidator 同一个页面两个form

bootstrapValidator 同一个页面两个form出现随机一个form无法验证的问题

经验证发现是页面内通过ajax加载子页面内容导致 bootstrapValidator .js重复加载,bootstrapValidator 没有记住之前配置的验校内容,导致后一个加载的子页面上的form没法验校。

解决方法

在子页去掉bootstrapValidator .js的加载

bootstrapValidator 不符合jQuery组件的画风

©2017 Leechg.com