0
0

More than 3 years have passed since last update.

bootstrapでdropdownが正常に動作しない場合

Last updated at Posted at 2020-03-05

デベロッパーツールで見ると、cosoleのところに下記のようなエラーが出ていた。

Uncaught Error: Bootstrap's JavaScript requires jQuery at

要は先にjQueryを読み込めということらしいです。

<header>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</header>

上記の場所で下記を挿入してjqueryを読み込めば正常に動作するようになりました。

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0