jQuery令牌输入(令牌输入)在模式弹出窗口上不起作用,列表隐藏在弹出窗口下 [英] jQuery Token Input (tokenize input) is not working on modal popup, list hidden under popup

查看:172
本文介绍了jQuery令牌输入(令牌输入)在模式弹出窗口上不起作用,列表隐藏在弹出窗口下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在jQuery中使用模式弹出窗口控件,该弹出窗口具有由jQuery Tokenize输入插件提供动力的输入文本.问题是,当我在模式弹出文本框中键入内容时,令牌化插件的搜索结果显示为隐藏在弹出窗口下方.实际上,它们应该摆在所有控件之上.我是初学者,请有人帮我.

I am using a modal popup up control in jQuery, the popup has an input text powered by jQuery Tokenize input plugin. The problem is when i type something on modal popup text box, the search results by tokenize plugin are shown hidden under the popup. Actually they should apprear on top of all controls. Would someone please help me as I am a beginner.

尝试从下面的线程寻求帮助,zindex无法正常工作. https://github.com/loopj/jquery-tokeninput/issues/190

Try to seek help from thread below, zindex is not working. https://github.com/loopj/jquery-tokeninput/issues/190

这是我正在使用的输入控件. http://loopj.com/jquery-tokeninput/demo.html

here is the input control that i am using. http://loopj.com/jquery-tokeninput/demo.html

谢谢.

推荐答案

通过手动设置z-index可以起作用:

It works by setting the z-index manually:

$(".token-input-dropdown").css("z-index","9999")

中给出的功能 https://github.com/loopj/jquery-tokeninput/issues/190 在我的coffeescript中不起作用:

The function given in https://github.com/loopj/jquery-tokeninput/issues/190 does not work in my coffeescript:

$('#book_author_tokens').tokenInput('/authors.json', { 
    zindex: 9999
  });

这篇关于jQuery令牌输入(令牌输入)在模式弹出窗口上不起作用,列表隐藏在弹出窗口下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆