how to pass parameter in javascript function from php code example
Example 1: php pass a variabele to js
<script>
'var name = <?php echo json_encode($name); ?>;
</script>'
Example 2: php variable as javascript function parameter in echo
<?php echo "<script> autoFill(".$dropDown.", ".$emptyDropDown."); </script>"; ?>