I have a html form:
<form method="post" action="apiCalls.php">
<input type="hidden" name="token" value="ghf823y932yd928u">
</form>
I want to submit this form (so the request get sent to the php script) but without redirecting the page. I tried a lot of things like $.post, $.ajax, form.submit prevent defaults, etc., but without resolving my problem.