Reputation: 71
I have this code in .vm file
<script...>
.....
var attr = attr0[i].id;
</script....>
#set($attr1 = $request.getParameter("attr"))
$attr1
How to get the jquery attribute (which is clientside) to velocity template variable which is serverside?
Upvotes: 1
Views: 196
Reputation: 1127
As I suggested in my comment you can use a parameter, something like this:
attr
parameter and it has a value do something in your templatevar url = {$currentURL} + '?attr=attrValue'
)Upvotes: 0