Answers for "php variable as javascript function parameter in echo"

PHP
10

javascript php variable

<script type="text/javascript">
   var php_var = "<?php echo $php_var; ?>";
</script>
Posted by: Guest on March-20-2020
0

php variable as javascript function parameter in echo

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

php echo call javascript function with parameters

// Most effective way to call a javascript function with parameter of PHP variable
echo '<input type="button" value="Button" onclick="return openEditor(\'' . $path_image . '\')">';
Posted by: Guest on October-21-2020

Code answers related to "php variable as javascript function parameter in echo"

Browse Popular Code Answers by Language