I had tried with update, but Grails didn't like (not with the same as in the example ; and I've just tried now, It makes the same error). Look by yourself :
Error 500: Could not parse script [home_xavier_Projets_package_grails_app_views_profil_addCompetences_gsp]: startup failed: home_xavier_Projets_package_grails_app_views_profil_addCompetences_gsp: 69: expecting ')', found 'update' @ line 69, column 21. update:'div' ^ 1 error
Servlet: grails
URI: /package/grails/profil/addCompetences.dispatch
Exception Message: startup failed: home_xavier_Projets_package_grails_app_views_profil_addCompetences_gsp: 69: expecting ')', found 'update' @ line 69, column 21. update:'div' ^ 1 error
Caused by: Could not parse script [home_xavier_Projets_package_grails_app_views_profil_addCompetences_gsp]: startup failed: home_xavier_Projets_package_grails_app_views_profil_addCompetences_gsp: 69: expecting ')', found 'update' @ line 69, column 21. update:'div' ^ 1 error
Class: home_xavier_Projets_package_grails_app_views_profil_addCompetences_gsp
At Line: [86]
I've changed the structure of the page between times, but I had exactly the same error. In update, i've tried to put first the type of the container, the id of the element, and what is said as in example. Same error everytime.
So I've tried another way, more "conventionnal", but I still got an error. My js code is implemented, however it's not recognized ! Filezilla says that any method I try to call doesn't exist. I've done it with pure JS and jQuery, but anything I do, nothing happens. Even an alert with jQuery.