post api response in html code example
Example 1: jquery post
$.post( "test.php", { name: "John", time: "2pm" } );
Example 2: $.post javascript
//$.post with jQuery
$.post(
"path/to/your/php/file",
{
param1: "Value",
param2: "Value"
},
function(data) {
//Callback here
}
);