Sending Variable From Php To Js [duplicate]

You Can set the JS variable in PHP file.

<script>
    var my_val="<?php echo $php_var; ?>";
</script>

Browse More Popular Posts

Leave a Comment