formvalidation-plugin

Bootstrap validator form plugin: how to change feedback icons

心不动则不痛 提交于 2019-12-02 12:33:04
问题 The bootstrap validator plugin helps validating the form fields providing a bunch of cool features. One of those features are the feedback icons, which defaults to glyphicon. Suppose I want to replace glyphicon with font awesome. The documentation says they can be changed by passing a "feedback" JSON object as data attribute or via JavaScript. Via JavaScript it's easy. But as data attribute, it is unclear where and how exactly add it, because simply adding: feedback: { success: 'fa-check',