[Solved] Preventing form with jQuery


$('#test').on('submit', function(e) {
  e.preventDefault();
  // do your custom stuffs and make a ajax call to submit it manually as per you requirement.
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<form id="test" method="POST">
  <input type="text" placeholder="Enter something" />
  <button>Submit</button>
</form>

Try this code it should work.

0

solved Preventing form with jQuery