Jquery to javascript. Post request
Friends, I'm converting Jquery to javascript and I'm having problems with this block of code: $.post('ajax_data',{action:'service_price',service:service,quantity:quantity,dripfeed:dripfeed,runs:runs}, function(data){ $("#charge").val(data.price); $("#dripfeed-totalquantity").val(data.totalQuantity); }, 'json'); I tried to do this, but it doesn't work for me const request = new XMLHttpRequest(); const url =…