javascript - 在模态中选择 2 个功能问题

标签 javascript jquery css twitter-bootstrap jquery-select2

我在我的工具中使用 select2 并在模态中使用它。

enter image description here

该插件无法在 IE 中正常工作(在模式中),但在普通页面上工作正常。

我之前遇到过一个问题,下拉菜单出现在窗口后面,并用以下代码修复了它:<style type="text/css"> .modal .modal-body { max-height: 420px; overflow-y: auto; } </style>

当我检查我在 FF 和 IE 上输入的字段时,它是同一个字段:

FF : <input class="select2-input" type="text" spellcheck="false" autocapitalize="off" autocorrect="off" autocomplete="off">


IE:<input class="select2-input select2-focused" type="text"     jQuery111006508689540941444="114" spellcheck="false" autocapitalize="off" autocorrect="off" autocomplete="off"/>

对发生的事情有什么想法吗?没有我能看到的 js 错误

最佳答案

为什么你不直接使用这个插件?? 它似乎也与 ff 和 ie 兼容

https://github.com/alxlit/bootstrap-chosen

或者这个

https://github.com/silviomoreto/bootstrap-select

关于javascript - 在模态中选择 2 个功能问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24195000/

相关文章:

javascript - 如何根据具有不同前缀的其他字符串重命名字符串?

javascript - jquery panzoom 点击

jquery - 范围 slider 在移动设备上不起作用?

jquery - 在 javascript 中嵌入 ruby

php - 获取整个 div 及其元素并使用 php 邮件功能发送它

javascript - 使用 jQuery 如何将页面中的相同 ID 更改为 Bootstrap 选项卡的序列化 ID

javascript - 在 Javascript 中计算平方和

Javascript 转义除文本相关的所有 HTML 标签(<h1>、<p>、<img> 等)

javascript - HTML 视频标签在 Safari 浏览器中不起作用

html - CSS 视差适用于 Chrome,但不适用于 Firefox?