JSFiddle - React, Tailwind, and code Playground

by der_robert

HTML

<span>test</span>

JavaScript

$( document ).ajaxSend(function( event, request, settings ) {
  console.log("---- EVENT ----");
  console.log(event);
  console.log("---- REQUEST ----");
  console.log(request);
  console.log("---- SETTINGS ----");
  console.log(settings);
});

function test(quelle){
  $.ajax({
    url: "https://www.sparkasse-hilft.info/demojson.php",
    context: "html",
    dataType: "JSON",
    data: {test: "123"},
    method: "POST"
  });
  console.log("Quelle");
  console.log(quelle);
}

$("span").on("click",function(){
	test("from click");
});