1. <small id='VnfUp'></small><noframes id='VnfUp'>

    • <bdo id='VnfUp'></bdo><ul id='VnfUp'></ul>
    <i id='VnfUp'><tr id='VnfUp'><dt id='VnfUp'><q id='VnfUp'><span id='VnfUp'><b id='VnfUp'><form id='VnfUp'><ins id='VnfUp'></ins><ul id='VnfUp'></ul><sub id='VnfUp'></sub></form><legend id='VnfUp'></legend><bdo id='VnfUp'><pre id='VnfUp'><center id='VnfUp'></center></pre></bdo></b><th id='VnfUp'></th></span></q></dt></tr></i><div id='VnfUp'><tfoot id='VnfUp'></tfoot><dl id='VnfUp'><fieldset id='VnfUp'></fieldset></dl></div>
  2. <tfoot id='VnfUp'></tfoot>

      <legend id='VnfUp'><style id='VnfUp'><dir id='VnfUp'><q id='VnfUp'></q></dir></style></legend>
    1. Jquery 令牌输入 - allowCustomEntry 不起作用

      时间:2024-04-19

          <bdo id='jVxoz'></bdo><ul id='jVxoz'></ul>

            <tbody id='jVxoz'></tbody>
          <tfoot id='jVxoz'></tfoot>

              <legend id='jVxoz'><style id='jVxoz'><dir id='jVxoz'><q id='jVxoz'></q></dir></style></legend>
                <i id='jVxoz'><tr id='jVxoz'><dt id='jVxoz'><q id='jVxoz'><span id='jVxoz'><b id='jVxoz'><form id='jVxoz'><ins id='jVxoz'></ins><ul id='jVxoz'></ul><sub id='jVxoz'></sub></form><legend id='jVxoz'></legend><bdo id='jVxoz'><pre id='jVxoz'><center id='jVxoz'></center></pre></bdo></b><th id='jVxoz'></th></span></q></dt></tr></i><div id='jVxoz'><tfoot id='jVxoz'></tfoot><dl id='jVxoz'><fieldset id='jVxoz'></fieldset></dl></div>

                <small id='jVxoz'></small><noframes id='jVxoz'>

                本文介绍了Jquery 令牌输入 - allowCustomEntry 不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在使用 Jquery Token Input 版本 1.6.0.我希望能够在令牌输入中输入自定义条目,但每次我这样做时都会提交表单(我输入自定义单词并按 Enter).这是我的代码(在咖啡脚本中):

                I am using Jquery Token Input version 1.6.0. I would like to be able to enter custom entries into the token-input, but everytime I do so the form submits (I type a custom word and hit enter). Here is my code (in coffeescript):

                jQuery ->
                    $('[id$=tag_list_tokens]').each ->
                        el = $(this)
                        el.tokenInput '/listings/tags.json',
                            theme: 'facebook'
                            minChars: 1
                            allowCustomEntry: true
                            preventDuplicates: true
                            prePopulate: el.data('load')
                            allowFreeTagging: false
                

                除了自定义条目外,一切正常……知道我做错了什么吗?

                Everything works fine except for the custom entries...any idea what I'm doing wrong?

                推荐答案

                allowFreeTagging 1.6.0 版本未实现.从 Github 下载 v1.6.1.(TokenInput 网站已经过时了几年.)

                allowFreeTagging wasn't implemented by version 1.6.0. Download v1.6.1 from Github. (The TokenInput website is a few years out of date.)

                我想你也想设置 allowFreeTagging:true,然后废弃 allowCustomEntry.

                I imagine you'll want to set allowFreeTagging:true as well, and scrap allowCustomEntry.

                这篇关于Jquery 令牌输入 - allowCustomEntry 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:JavaScript setInterval 没有正确绑定到正确的闭包 下一篇:对具有匹配值的 JSON 键进行排序和合并

                相关文章

                1. <i id='6QR4d'><tr id='6QR4d'><dt id='6QR4d'><q id='6QR4d'><span id='6QR4d'><b id='6QR4d'><form id='6QR4d'><ins id='6QR4d'></ins><ul id='6QR4d'></ul><sub id='6QR4d'></sub></form><legend id='6QR4d'></legend><bdo id='6QR4d'><pre id='6QR4d'><center id='6QR4d'></center></pre></bdo></b><th id='6QR4d'></th></span></q></dt></tr></i><div id='6QR4d'><tfoot id='6QR4d'></tfoot><dl id='6QR4d'><fieldset id='6QR4d'></fieldset></dl></div>

                    <tfoot id='6QR4d'></tfoot><legend id='6QR4d'><style id='6QR4d'><dir id='6QR4d'><q id='6QR4d'></q></dir></style></legend>

                      <bdo id='6QR4d'></bdo><ul id='6QR4d'></ul>
                  1. <small id='6QR4d'></small><noframes id='6QR4d'>