Edit this page

up.form up.form.submitOptions(form, [options])
JavaScript function

Parses the render options that would be used to submit the given form, but does not render.


Given a form element:

<form action="/foo" method="post" up-target=".content">

We can parse the link's render options like this:

let form = document.querySelector('form')
let options = up.form.submitOptions(form)
// => { url: '/foo', method: 'POST', target: '.content', ... }


form ElementorjQueryorstring

The form for which to parse render option.

[options] Object optional

Additional options for the form submission.

Will override any attribute values set on the given form element.

See up.render() for detailed documentation of individual option properties.

Return value

This website uses cookies to improve usability and analyze traffic.
I accept or learn more