Answers for "how to pass parameter in javascript function from php"

PHP
8

php pass a variabele to js

<script>
'var name = <?php echo json_encode($name); ?>;
</script>'
Posted by: Guest on February-08-2020
0

php variable as javascript function parameter in echo

<?php echo "<script> autoFill(".$dropDown.", ".$emptyDropDown."); </script>"; ?>
Posted by: Guest on October-27-2020

Code answers related to "how to pass parameter in javascript function from php"

Browse Popular Code Answers by Language