JSFiddle - React, Tailwind, and code Playground

by Brian Houlihan

HTML

Amway Test

JavaScript

var myUrl = "https://amway-km.custhelp.com/cc/DynamicsController/searchKb";
var params = { ReasonCode: "1001" };
$.ajax({
    url: myUrl,
    crossDomain: true,
    dataType: 'json',
    type: 'POST',
    contentType: 'application/json',
    data: params,
    processData: false,
    success: function( data, textStatus, jQxhr ){
        $('#response pre').html( JSON.stringify( data ) );
    },
    error: function( jqXhr, textStatus, errorThrown ){
        console.log( errorThrown );
    }
});