Hi,
I have at the top of my index.php page the code that links to a .js file. Inside this .js file i need to have a variable which was defined inside my index page but i do not know how to accomplish this.
Any help appreciated –
Thanks
what about trying to make a display:none element thats contains this variable lets say
and in the javascript i assume that you use Jquery
we will select the var div and get the value of it’s content
Code:
var Svalue = $(‘#var’).text();
if this do what you want or dont , please let me know