I get some code via AJAX call I make by using Javascript. Everything works well with AJAX call, everything gets delivered when I check in Network tab(dev. tools). Here is my code
<form method='POST' action='some.php' id='next'>
<input type='hidden' name='some' value='1' />
</form>
<script>
document.getElementById('next').submit();
</script>
This is the part that does not work. I check my html with inspect and all code is there correctly. When I put this code manually to webpage (without AJAX) it works well, but when it gets delivered via AJAX it does not, even if its get loaded normally (simply .submit() does not work in that case, nothing happens.) Kind Regards!