Submits a HTML <form> to the server without reloading the page.

interface SubmitFunction ((target, options?) => void)
  • Parameters

    • target: SubmitTarget

      Specifies the <form> to be submitted to the server, a specific <button> or <input type="submit"> to use to submit the form, or some arbitrary data to submit.

      Note: When using a <button> its name and value will also be included in the form data that is submitted.

    • Optional options: SubmitOptions

      Options that override the <form>'s own attributes. Required when submitting arbitrary data without a backing <form>.

    Returns void