Grails中的jQuery UI自动完成 [英] jquery-ui autocomplete in grails

查看:215
本文介绍了Grails中的jQuery UI自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能给我的完整步骤与jQuery UI的自动完成的工作。我使用的Grails 2.0.1。

Can anyone give me the complete steps to work with jquery-ui autocomplete. I am using grails 2.0.1.

我需要一个完整的例子包括code的控制器和视图。

I need a complete example including code for controller and views.

在此先感谢。

推荐答案

首先,你需要在你的main.gsp增加(头部)这行

At first you need to add in your main.gsp (in head) this to lines

 <g:javascript library="jquery"/>
 <g:javascript library="jquery-ui"/>

该插件会自动下载。

the plugin will downloaded automatically.

和完整例如,你可以使用这个链接

and for complete example you can use this link

<一个href="http://jay-chandran.blogspot.com/2011/09/using-grails-with-jquery-autocomplete.html">http://jay-chandran.blogspot.com/2011/09/using-grails-with-jquery-autocomplete.html

这篇关于Grails中的jQuery UI自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆