I hope that someone can assist.
I have following code which is not accepted:
<g:link title="Periodendaten speichern" action="speicherePeriodendaten" params="'\'pStart=\' + $('#periodeStart'${i}').value'" id="${zwzPeriode.id}">
With $('#periodeStartX'), I am trying to get the DOM element with the ID periodeStartX, where X is the current value of i. i is coming from a g:each-Tag (status=i)
I know that following is working:
<g:link title="Periodendaten speichern" action="speicherePeriodendaten" params="'\'pStart=\' + this.value'" id="${zwzPeriode.id}">
But in the above scenario, I don't want to have the value of the current Tag, I want the value of another Tag.
My problem is therefore, that I don't understand how to escape here correctly.
I would appreciate any good hint.
Best Regards, Michael
params="'\'pStart=\' + this.value'"is working? what do you get on client side for such code?