JSFiddle - React, Tailwind, and code Playground
JavaScript
jQuery.ajax({
data : {
productId : productId,
quantity : jQuery('#quantity').val(),
skuSelection : selectedSkuValue
},
type : 'GET',
dataType: 'json',
url : '/store/global/fragments/addItemToDynamicCart.jsp',
success : function (data, textStatus, jqXHR) {
//do stuff
},
error : function (jqXHR, textStatus, errorThrown) {
}
});