问题
I create test application with bootstrap-multiselect. But I can't open dropdown combobox. In page I get exeption:Uncaught TypeError: undefined is not a function (anonymous function) About:96jQuery.Callbacks.fire jquery-2.1.1.js:3073jQuery.Callbacks.self.fireWith jquery-2.1.1.js:3185jQuery.extend.ready jquery-2.1.1.js:3391completed. I can't decided this error
<link href="~/Content/bootstrap.min.css" rel="stylesheet" />
<script src="~/Scripts/jquery-2.1.1.js"></script>
<script src="~/Scripts/bootstrap-multiselect.js"></script>
<link href="~/Content/bootstrap-multiselect.css" rel="stylesheet" />
HTML code: Gender Male Female Other Male Male
Javascript:
$(document).ready(function () {
$('.multiselect').multiselect();
});
来源:https://stackoverflow.com/questions/26040431/bootstrap-multiselect-uncaught-typeerror-undefined-is-not-a-function