I have worked for hours on this with little joy. I am a total beginner on jQuery. On submitting a form I want to stop the form processing, load an external file, then process the form. Everything works apart from the final line of submitting the form. Can someone point me in the right direction.
<script type="text/javascript">
$("#form1").on('submit', function(e) {
e.preventDefault();
$("#a").load("saveData.php");
$('#form1').submit();
});
</script>