skip to Main Content

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 =…

VIEW QUESTION

Method 'POST' error 419 on local server Laravel

When i submit a post form on my page it doesn't work, it redirects me on the action route with error 419, this is an example of my form: <form action="{{route('client.login')}}" method="POST"> @csrf @method('POST') <h4 class="login-title">Login</h4> <div class="login-form"> <div class="row">…

VIEW QUESTION
Back To Top
Search