Alert dismissing using Twitter Bootstrap is not working?

后端 未结 2 1980
陌清茗
陌清茗 2021-02-19 03:32

I\'m using Google Chrome.
Using Twitter Bootstrap, I want to add a simple alert, unfortunately the alert is not dismissing when the x is pressed!

Here\'s my code b

相关标签:
2条回答
  • 2021-02-19 03:50

    I've written a small, customisable, jquery plugin that injects a properly formed Bootstrap 3 alert (with or without close button as you need it) with a minimum of fuss and allows you to easily regenerate it after the box is closed.

    See https://github.com/davesag/jquery-bs3Alert for usage, tests, and examples.

    0 讨论(0)
  • 2021-02-19 04:01

    Thanks to davidkonrad's comment.
    The solution is trivial, by adding:

        <script src="js/bootstrap.min.js"></script>
    
    0 讨论(0)
提交回复
热议问题