1.8.6 • Published 2 years ago

fetchform v1.8.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

About

fetchform a powerful javascript framework that allows easily use html-forms.

Installation

npm install fetchform
yarn add fetchform
pnpm add fetchform

Examples

CDN

<script src="https://unpkg.com/fetchform@1.8.6/lib/fetchform.min.js"></script>

import

// CommonJS
const FetchForm = require('fetchform')
// ES6 Import
import FetchForm from 'fetchform'

Get FormData

// 'form' your form element selector
const form = document.querySelector('form')
// 'options' (optional) - setting
const fetchForm = new FetchForm(form, {
  includeDisabled: false,
  includeEmpty: true,
  includeHidden: true
})

Options properties

  • includeDisabled (boolean)
    • It includes elements that disabled
  • includeEmpty (boolean)
    • It includes elements that don't contain any value
  • includeHidden (boolean)
    • It includes elements that hidden
1.8.6

2 years ago

1.8.5

2 years ago