How can I pass a javascript value to grails variables. For example:
var ert = 1;
function test(){
ert++;
}
that function will be called if a button is click, does incrementing the variable. Now I want to pass this value to a grails variables or groovy variables that is being returned to the page. How can I do this?