jquery-ui autocomplete in grails

喜你入骨 提交于 2019-11-28 01:47:06

问题


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

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

Thanks in advance.


回答1:


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

http://jay-chandran.blogspot.com/2011/09/using-grails-with-jquery-autocomplete.html




回答2:


you should really try to do this yourself and then ask a question about how something works or why something is not working.

but a good place to start is the general jquery - ui documentation

http://jqueryui.com/demos/autocomplete/

and then you could run through a simple example like this:

http://ohmiserableme.blogspot.com/2011/08/grails-jquery-ajax-autocomplete-with.html



来源:https://stackoverflow.com/questions/10433858/jquery-ui-autocomplete-in-grails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!