开发者

How to Introduce jQuery auto complete for drupal5

Hey I am new to Drupal.开发者_StackOverflow中文版 Can someone help me to introduce jQuery auto complete into a drupal text field. I prefer basic coding standards.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜