0

I am doing a site in php, needs a auto-suggest for group messaging.Clent need is to entering phone numbers separated by commas. we need to add the auto suggest functionlity for textarea.Is anybody aware of it Please help.Any help will be appreciated

Soumya Mohanan
  • 316
  • 4
  • 15

2 Answers2

1

I think you need this.

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

   });

});

see here to get plug-in and all other information.

Also see nice example here with fix tags.

Hope, it helps you. Thanks. !!

Community
  • 1
  • 1
immayankmodi
  • 8,210
  • 9
  • 38
  • 55
0

Yes you can use auto suggest on text areas. E.g. By separating words with a comma.

When entering new characters, use auto suggest Ajax calls to server (with jquery or similar tools) The search term is the new word being typed after last comma.

When user selects a new suggestion replace the last typed chars since last comma.

There should be some plugins for jquery which do this already.