@f/is-element-submittable

1.0.0 • Public • Published

is-element-submittable

Build status Git tag NPM version Code style

Check whether or not a form control is serializable. Copied from submittable, but made into an npm compatible micro module.

Installation

$ npm install @f/is-element-submittable

Usage

var isSubmittable = require('@f/is-element-submittable')

isSubmittable(<button type='submit'></button>) // false
isSubmittable(<input type='text' />)           // true

API

isSubmittable(element)

  • element - The DOM element you want to check for serializability

Returns: A boolean value indicating whether or not the element contains a serializable value.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    155
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    155

Package Sidebar

Install

npm i @f/is-element-submittable

Weekly Downloads

155

Version

1.0.0

License

MIT

Last publish

Collaborators

  • f