How to modify wrapper div error class when using CakePHP with Bootstrap

前端 未结 7 1861
我寻月下人不归
我寻月下人不归 2021-02-08 13:47

I\'m using Bootstrap 3.0RC1 with CakePHP 2.3.6. Trying to take advantage of those beautiful looking classes like has-error and has-w

相关标签:
7条回答
  • 2021-02-08 14:41

    I used jQuery.

    <script>
    $(document).ready(function() {
        $('.form-control').parent('.error').each(function() {
            $(this).addClass('has-error');
        });
    });
    </script>
    
    0 讨论(0)
提交回复
热议问题