I've to do a variable array with variable name based on ID set by PHP echo.
<script>
var dat<?php echo $id; ?>;
dat<?php echo $id; ?> = ["ecc..","ecc.."];
</script>
jQuery("#name").html(dat[0]+id); // doesn't work
id is already set by a function, the question is: can i write the VAR correctly including also the PHP ID? Thanks.
Thanks