[Solved] Need to put dynamically generated (PHP) data into javascript [closed]


Try this code, which is not completely coded. please, refer Link for further queries.

$(foo).bar({
   data:{
   $.ajax({
     url: "complete_path.php", 
     success: function(result){
     console.log(result); // Process your data as per the requirement.
   }});
  },
});

1

solved Need to put dynamically generated (PHP) data into javascript [closed]