Click here to Skip to main content
15,919,336 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900