I have a Grails 2.0.0 project that was created using grails create-app
. In my HTML and GSP files, I\'m trying to include jquery.js
. I\'ve tried all of
As per the current docs - http://grails.org/plugin/jquery (Grails version: 1.3 > *) on 18th Sept, 2015
To install the jQuery plugin type this command from your project's root folder:
grails install-plugin jquery
grails installJQuery
The complete jQuery distribution is downloaded and installed under your project's /web-app/js/jQuery folder.
To have the Grails' adaptive AJAX support adapt itself to jQuery (rather than the default of Prototype, or another choice like YUI or Dojo):
Add this line to your layout-file
and the following to your grails-app/conf/config.groovy
grails.views.javascript.library="jquery"
alternatively you can use:
(without plugin="jquery") but you will need to call the grails installJQuery target (see Installation Tab)