JSFiddle - React, Tailwind, and code Playground

JavaScript

function ShoppingCartAddAJAX(formElement, productNumber) {
    formElement = $(formElement);
    $.ajax({
        type: "POST",
        url: "dmiajax.aspx?request=ShoppingCartAddAJAX",
        data: formElement.serialize(),
        dataType: "json",
        success: function(response) {

            if (response.Status == "WishListSuccess") {
                var url = "productslist.aspx?listName=" + response.listName + "&listType=" + response.listType;
                $(location).attr('href', url);
            } else if (response.Status == "Success") {

                  
            if ( response.Status == "Success" )
           {
            
                $.ajax({
                    type: "GET",
                    url: "dmiajax.aspx?request=FloatingCart&extra=" + rnd(),
                    dataType: "html",
                    success: function(response) {
                        var floatingCart = $("ul.dropdown-menu.topcart");

                        if (floatingCart.length == 0) {
                            floatingCart = $('<ul class="dropdown-menu topcartopen"></ul>').insertBefore(".pull-right");
                            floatingCart.hoverIntent({
                                over: function() {},
                                timeout: 200,
                                out: function() {
                                    $(this).stop(true, true).filter(":visible").hide("drop", {
                                        direction: "down"
                                    });
                                }
                            });
							                         
                        }
						  
                        floatingCart.html(response);

                        $("html, body").scrollTop(0);
						
                        var floatingCartTbody = floatingCart.find("tbody");
                        floatingCartTbody.find("tr").filter(":last").effect("highlight", {
                            color: "#B3B3B3"
           ...