Convert AJAX Jquery to Vanilla Javascript (POST) with .fetch async
I am trying to change this .ajax call from Jquery to pure Javascript. And this way I receive the JSON in my PHP: echo '{"enviando":-1,"cat":"<span class=text-primary><strong>' . $exampleresult . '</strong></span>"}'; JQUERY CALL: ajaxCall = $.ajax({ url: "data.php", dataType: "json", cache:…