Installed the plugin to integrate the jquery with grails and tried it.