自动填充文本区域 [英] text area with auto fill

查看:98
本文介绍了自动填充文本区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,有没有用于创建文本框自动填充文本区域的插件或代码.只要这些自动填充词必须在表格中存在此类类似词的情况下才出现...


例如,如果我有一个带有字段说明的表.让它包含严重头痛的价值.现在,当我在文本区域中键入S时,我需要使用单词Severe创建自动填充,因为它在DB

Hi guys is there any plug ins or code to create an autofill textarea of textbox.. Provided the autofill words must appear only if such similar words exist in table...


For example if i have a table with field Description. Let it contain value Severe Headache. Now when i type S in the textarea i need to create an auto fill with word Severe since its in the DB

推荐答案

中,我建议使用jQuery使用数据库中的数据为您执行自动完成.这是如何执行此操作的示例:

http://www.jensbits.com/2010 /03/29/jquery-ui-autocomplete-widget-with-php-and-mysql/ [ http://stackoverflow.com/questions/5305294/jquery-autocomplete-mysql-php [ ^ ]
What I would suggest would be to use jQuery to perform the autocomplete for you using data from the database. Here is an example of how to do that:

http://www.jensbits.com/2010/03/29/jquery-ui-autocomplete-widget-with-php-and-mysql/[^]

Here is a Stack Overflow question that involves doing this as well. Some of the information provided is very useful:

http://stackoverflow.com/questions/5305294/jquery-autocomplete-mysql-php[^]


这篇关于自动填充文本区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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