AJAX Form
- Adds support for PUT, PATCH, DELETE and OPTIONS methods in HTML forms.
- Adds support for submitting JSON and other content types in HTML forms.
See
index.html for example usage.
Requirements
jQuery 1.9+
Restrictions
- Multipart (file upload) is only supported in browsers that support the FormData API.
- Browsers that do not support the history API will result in a subsequent
GET request.
- Cross-domain requests will result in a subsequent
GET request.
- Non-HTML responses will result in a subsequent
GET request.
Usage - PUT, PATCH, DELETE, OPTIONS methods
Use data-method="***".
Or using button controls.
Usage - Content type overriding
Use data-override="content" and data-override="content-type".
Using an input control:
Using a select control: