I have a function that does some custom work with the submit form, sends some data through Ajax, adds the returned data to a new FormData object, now I need to send the form conditionally (and not through Ajax) using this FormData. I understand that this can be achieved with hidden fields, but what if I don't want the returned data to be visible to someone who knows a bit of coding?
So, is it possible to submit a form using a special FormData in jQuery without hidden fields and Ajax?
source share