JSFiddle - React, Tailwind, and code Playground

HTML

<body>
<form id="form1" runat="server">
<div>
    <input type="button" id="btn" value="submit" />
</div>
</form>

JavaScript

$(document).ready
    (
    function () {

        jQuery.support.cors = true;
        $("#btn").click
        (
        function () {
            $.ajax
            (
            {
                url: "http://localhost:52227/api/Values",
                type: "GET",
                dataType: "json",
                success: function (data) {
                    alert("hello");
                },
                error: function (data) {
                    alert("test");
                }
            }
            );
        }
        );
    }
    );