Hello guys, sorry for this dumb question, but i'm totally noob in jquery..
i have this simple function in a velocity page, $ is velocity variable not jquery
<script>
function view(id)
{
document.location.href='http://server/x?id=' + id;
}
</script>
#foreach($data in $list)
<tr>
<td>$data.Code</td>
<td>$data.Desc</td>
<td><a id='viewBtn' href="javascript:view('$data.Id')">View</a></td>
</tr>
#end
How should I code above function in jquery style? Where should I put server side data ($data.Id variable) to pass to jquery as in simple js function above?
Thanks before