How to use Twitter Bootstrap popovers for jQuery validation notifications?

后端 未结 16 1675
无人共我
无人共我 2020-11-30 16:49

I can make popovers appear using bootstrap easily enough, and I can also do validations using the standard jQuery validation plugin or the jQuery validation engine, but I ca

16条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 17:29

    This jQuery extension for jQuery Validation Plugin (tested with version 1.9.0) will do the trick.

    https://github.com/tonycoco/rails_template/blob/master/files/assets/javascripts/jquery.validate.bootstrap.js

    This also adds in some Rails-esk error messaging.

提交回复
热议问题