Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery plugin that suggests/autocompletes within a textarea [closed]

Is there a jQuery plugin that suggests/autocompletes within a textarea?

What I want is to have suggested words or autocompleted text proffered to the user in a textarea like the example image below:

autocomplete box demo

like image 352
Trufa Avatar asked Dec 01 '10 22:12

Trufa


1 Answers

Well there is the autocomplete plugin that does just that, and if you want to pull data from a database I recomment using the ajax API that is included in jQuery.

something like this

$('textarea').keyup(function(){
  $.post('ajax/test.php', function(data) {
   $('#example').autocomplete(data);

   });

});

Also remember this is just the basic structure to give you an idea.

P.S. I just found this it should fill all your needs.

like image 77
Breezer Avatar answered Sep 27 '22 03:09

Breezer