Is that possible to pass a JS variable to PHP ?
My code is :
document.getElementById('designation_' + i).value = '<?php echo $list[HERE]; ?>';
where I is in a for
loop.
I want to echo the $list array
in PHP with the index I of my JS (instead of HERE).
First, is that possible? If yes, how?