jquery-ui autocomplete in grails

后端 未结 2 569
别跟我提以往
别跟我提以往 2020-12-18 11:55

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 view

相关标签:
2条回答
  • 2020-12-18 12:10

    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

    0 讨论(0)
  • 2020-12-18 12:27

    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

    0 讨论(0)
提交回复
热议问题