TypeError: $(…).modal is not a function with bootstrap Modal

前端 未结 14 1875

I have a bootstrap 2.32 modal which I am trying to dynamically insert into the HTML of another view. I\'m working with Codeigniter 2.1. Following Dynamically inserting a boo

14条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 04:53

    I resolved this issue in Laravel by modifing the line below in resources\assets\js\bootstrap.js

    window.$ = window.jQuery = require('jquery/dist/jquery.slim');
    

    to

    window.$ = window.jQuery = require('jquery/dist/jquery');
    

提交回复
热议问题