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

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

问题描述

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

我需要一些可以让您键入标签任何部分的内容,并且会为该标签生成x条建议,例如下拉菜单.另一个要求是,当我键入下一个标签时,将生成更多建议,并且当您单击建议的标签时,它会结束您正在键入的标签,而不仅仅是将其附加到输入字段中.

我已经在许多网站上看到了此操作,但是找不到任何插件来完成此操作.

谢谢.

解决方案

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

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.

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.

Thanks.

解决方案

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天全站免登陆