JSFiddle - React, Tailwind, and code Playground

JavaScript

function sendEvent(id) {
    $.ajax({
        url: "SAPEVENT:SOME_TEXT?" + id,
        crossDomain: true
    });
}

sendEvent(2);