TypeError: $(…).modal is not a function with bootstrap Modal
问题 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 bootstrap modal partial view into a view, I have: <div id="modal_target"></div> as the target div for insertion. I have a button in my view that looks like: <a href="#message" class="btn btn-large btn-info" data-action="Message" data-toggle="tab">Message</a> My JS has: $.ajax({ type : 'POST', url : "AjaxUpdate/get_modal",