friends.
I am trying to send a value to a js function and print it using php code, so I've tried this code:
<script>
getName("Jack");
function getName(name){
var n = "You have choosed: " + name";
<?php echo " . n. "; ?> //it supposed to print You have choosed: Jack
}
</script>
but the code above didn't work! can you help me please?