bootstrapvalidator gives “Cannot read property 'group' of undefined” on ckeditor field

佐手、 提交于 2019-12-07 00:45:30

The below works good,

$('#posteditor')
      .bootstrapValidator('updateStatus', $('#text'), 'NOT_VALIDATED')
      .bootstrapValidator('validateField', $('#text'));
  });

Or

 $('#posteditor').bootstrapValidator('revalidateField', $('#text'));

Check whether you have accidentally added fv-* or bv-* attributes to any of the fields which in the html page and not in your form...

Also check whether your page has more than one input box with same name..

Because,While validating the validator selects all fields in the page and process only the inputs with field names in your initialization.

Moreover you can use http://jsbeautifier.org/ to deminify your bootstrapValidator.min.js and debug on your own to check your issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!