The interaction between javascript and html. how can I notify php to process data in javascript, return the result, continue processing in javascript, and display in html?
Reply to discussion (solution)
It seems you can use ajax.
It seems you can use ajax.
How can I get it without ajax!
And how to use ajax?
This function can only use ajax to go to the next jquery manual.
$. Ajax ({type: "POST", url: "some. php ", data:" name = John & location = Boston ", success: function (msg) {alert (" Data Saved: "+ msg ); // successful html display Result }});
This function can only use ajax to go to the next jquery manual.
$. Ajax ({type: "POST", url: "some. php ", data:" name = John & location = Boston ", success: function (msg) {alert (" Data Saved: "+ msg ); // successful html display Result }});
This function can only use ajax to go to the next jquery manual.
$. Ajax ({type: "POST", url: "some. php ", data:" name = John & location = Boston ", success: function (msg) {alert (" Data Saved: "+ msg ); // successful html display Result }});
Here is an example.