郭佳乐 郭佳乐 - 17 days ago 5
Javascript Question

Uncaught TypeError: $(...).modal is not a function at HTMLButtonElement.<anonymous>

enter image description here

enter image description here

enter image description here

enter image description here
this is my quote of jquery:

<script src="../js/jquery-1.11.1.min.js"></script>


I have searcher for two hours, this project can work in other pc. In my pc ,it just can't... help!

Answer

modal() is not a standard method of jQuery.

You will need to include another library that has a modal() method - such as jQueryUI, or Bootstrap.

If you have included one of those libraries you need to ensure that the URL to the file is correct, and that you have included it after jquery.js.

Comments