JSFiddle - React, Tailwind, and code Playground
JavaScript
jQuery.ajax({
data: {
productId: "productId",
quantity: 1,
skuSelection: "selectedSkuValue"
},
type: 'GET',
dataType: 'json',
url: '/store/ajax-response.jsp',
success: function(data, textStatus, jqXHR) {
console.log('success');
},
error: function(jqXHR, textStatus, errorThrown) {
console.log('failure');
}
});