使用 PHP 标记自动完成(如 SO) [英] Tag autocomplete with PHP (like SO)

查看:14
本文介绍了使用 PHP 标记自动完成(如 SO)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在 jQuery(最好是)插件用于像 Stack Overflow 上一样进行标记?当您发布问题时,标签"字段可让您输入标签.

Does a jQuery (preferably) plugin exist for tagging like on Stack Overflow? When you post a question, the 'Tags' field lets you type tags in.

我需要一些可以让你在标签的任何部分输入的东西,并且会为这个标签生成 x 建议,就像下拉菜单一样.另一个要求是,当我输入下一个标签时,会生成更多建议,并且当您单击建议的标签时,它会结束您正在输入的标签,而不仅仅是将其附加到输入字段.

I need something that will let you type in any part of a tag and x suggestions for this tag will be generated, as something like a dropdown menu. Another requirement is that when I type the next tag, more suggestions will be generated, and that when you click on a suggested tag, it finishes off the tag you're typing and doesn't just append it to the input field.

我已经在许多网站上看到过这样做,但找不到任何插件来做到这一点.

I've seen this being done on many websites but can't find any plugin to do it.

谢谢.

推荐答案

听起来像 Tag-it.jQuery UI 是必需的.你可以在 Github 上找到项目和源代码:https://github.com/aehlke/tag-it

Sounds like Tag-it. jQuery UI is a requirement. You can find the project and source code on Github: https://github.com/aehlke/tag-it

这篇关于使用 PHP 标记自动完成(如 SO)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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