Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Latest commit

 

History

History
23 lines (14 loc) · 453 Bytes

Readme.md

File metadata and controls

23 lines (14 loc) · 453 Bytes

submittable

check if the given form element is submittable.

Installation

Install with component(1):

$ component install yields/submittable

Example

submittable('<input type="text" name="baz">'); // > true
submittable('<select></select>'); // > false
submittable('<input type="checkbox" name="baz" checked>'); // > true
submittable('<input type="submit" name="foo">'); // > false

License

MIT