form-request-submit-polyfill

2.0.0 • Public • Published

<form>.requestSubmit() polyfill

form.requestSubmit([submitter])

Requests to submit the form. Unlike submit(), this method includes interactive constraint validation and firing a submit event, either of which can cancel submission.

The submitter argument can be used to point to a specific submit button, whose formaction, formenctype, formmethod, formnovalidate, and formtarget attributes can impact submission. Additionally, the submitter will be included when constructing the entry list for submission; normally, buttons are excluded.

References


Distributed under the MIT license. See LICENSE for details.

© 2019 Javan Makhmali

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    25,602
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    25,602
  • 1.0.0
    0

Package Sidebar

Install

npm i form-request-submit-polyfill

Weekly Downloads

25,602

Version

2.0.0

License

MIT

Unpacked Size

3.67 kB

Total Files

4

Last publish

Collaborators

  • javan