jQuery和PHP参考答案 [英] jQuery and PHP suggested answers

查看:90
本文介绍了jQuery和PHP参考答案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一种形式,其中用户选择他的一些朋友和我对我如何​​可以实现同时搜索在用户键入一个朋友的名字时,他选择了名的名字是一个列表好奇写在文本框中(jQuery的)。而如果用户想选择一个以上的朋友,当我在数据库中插入的名字,我怎么能分开被写在一个输入字段的名称?

Hey guys, there is a form where the user select some of his friends and I'm curious on how I can implement a list that searches simultaneously while the user is typing a friend's name and when he selects the name the name is written in the text box(jQuery). And if the user wants to select more than one friend, when I'm inserting the names in the database, how can I separate the names that are written in one input field?

推荐答案

您是否希望编写自己的插件,或者你想用现有的?

Are you looking to write your own plugin or would you like to use an existing one?

如果你想要的东西现成的,这里有几个例子

If you want something ready made, here are a few examples

如果你想要的东西非常轻,只有6KB水泄不通,这人会是最好的选择结果
自动提示jQuery插件

if you want something extremely light, only 6kb packed, this one would be the best choice
Autosuggest jQuery Plugin

较早的一个,但还是不错的。

Older one but still good

标记化自动完成

这篇关于jQuery和PHP参考答案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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