0

我使用 bootstrap-multiselect 创建测试应用程序。但我无法打开下拉组合框。在页面中我得到异常: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:3391 完成。我无法确定这个错误

    <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 代码: 性别 男 女 其他 男 男

  • 女性
  • 其他
  • 性别为必填 浏览器 Google Chrome Firefox IE Safari Opera 其他 未选择
  • 谷歌浏览器
  • 火狐
  • IE
  • 苹果浏览器
  • 歌剧
  • 其他
  • 请选择 2-3 个您用于开发 Validate 的浏览器

    Javascript:
    $(document).ready(function () { $('.multiselect').multiselect(); });

    4

    0 回答 0