在Facebook消息等输入字段中创建一个跨度 [英] Creating a span in an input field like Facebook messages

查看:81
本文介绍了在Facebook消息等输入字段中创建一个跨度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部,
我正在尝试创建与Facebook邮件一起使用的相同类型的功能。我想基本上有一个跨度的列表(我猜他们做了这样的事情)在一个输入文本框中,然后小的关闭它。

All, I'm trying to create the same type of functionality that works with the Facebook messages. I'd like to basically have a list of spans (i'm guessing they do something like that) in an input textbox followed by the little to close it out.

有谁知道如何创建类似的东西?

Does anyone know how to create something like that?

预先感谢!

推荐答案

这是标记和自动完成文本字段。您可能想检查名为selected的插件:

It's the tag and autocomplete textfield. You might want to check the plugin called chosen:

http ://harvesthq.github.com/chosen/

或者,这个插件,我认为它更相关:

or, this plugin, I think it's more relevant:

http://textextjs.com/

这篇关于在Facebook消息等输入字段中创建一个跨度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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