I am trying to submit the form without reloading the page itself using the jQuery, but the data is not showing up and the form is reloading, which is not needed.
Prevent the default action of the form submit.
function submitFormData(event) { // prevent the default action event.preventDefault(); // Other pieces of code