0

How to pass my php $var to javascript var

15th Apr 2018, 6:34 AM
Kundlwana Siphelele
Kundlwana Siphelele - avatar
2 Respuestas
+ 5
var a = ”<php echo $var;”; $.ajax({ url: ”get.php”, success: function(data) { a = data; } });
15th Apr 2018, 6:43 AM
Toni Isotalo
Toni Isotalo - avatar
0
thanks I'll try it
16th Apr 2018, 8:39 PM
Kundlwana Siphelele
Kundlwana Siphelele - avatar