Answers for "pass javascript function variable in php echo"

PHP
6

pass php variable to javascript

//passing PHP variable to JavaScript
var myJSVar = <?php echo json_encode($myPHPVar); ?>;
Posted by: Guest on August-05-2019
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 "pass javascript function variable in php echo"

Browse Popular Code Answers by Language