There is a php file with the code:
<? $Name = $line['Name']; $Adres = $line['Adres']; $Lat = $line['Lat']; $Lng = $line['Lng']; ?> <html> <head> <script type="text/javascript" src="scripts/load_map_step.js"></script> </head> <body> </body> </html> Those. in php, I assigned values to variables, and now I want to access them from the file load_map_step.js. I try so but nothing works, the data is empty ...
var mylat = $(Lat).val(); var mylong = $(Lng).val();