Results 1 to 4 of 4
Jun 29, 2012, 02:52 #1
- Join Date
- Sep 2008
- 0 Post(s)
- 0 Thread(s)
PHP to set JS variable outside of JS file
the_value = 1;
How is the best way to do this as I don;t like the below method?
<script> the_value = "<?php echo $the_value; ?>"; </script>
<meta id="the_value" content="1">
Is that possible?
What is the best way to do this?