How to add a post parameter to manual form submission?
I want to submit a form manually after some complicated checks. Because checks involve user interaction, the whole check process is not done synchronously. Here is the scenario: User clicks a button (an HTML <button id='button-id'> tag) I prevent the default action of the button (which is the form submission) I do a complicated check. Somewhere in the check process, I show a dialog and wait for the user to respond (here, the original check function proceeds and returns) I provide a callback function for that dialog, which fires and runs when the user closes it (either positive or negative