skip to Main Content

Use PHP file in Javascript – Jquery ajax

I have a PHP file contain some calculation. Now, I want to integrate the calculation into javascript in another file. How i can pass the variable in javascript to do calculation inside php? this is my javascript code: $("#upload").on("click", function(){…

VIEW QUESTION

JSON not returning the actual data from the url – Jquery ajax

I am trying to build a basic covid19 website. the code I am using is only returning [object Object] in the actual data. What I am doing wrong here? <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $.getJSON("https://api.covid19api.com/summary", function(result){…

VIEW QUESTION
Back To Top
Search