Hey I am new to Drupal. Can someone help me to introduce jQuery auto complete into a drupal text field. I prefer basic coding standards.
+1
A:
You can take a look at the Drupal Form API for textfields. One of the attributes you can set is #autocomplete_path. Here you can set the path that the autocomplete widget should use.
Then all that is left, return some JSON data to your ajax call. You can do this yourself with by implementing hook_menu(). The code for the form and the menu callback should be located in a module that you create.
googletorp
2010-01-07 08:49:00