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

yields/submittable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

check if the given form element is submittable.

Resources

Stars

Watchers

Forks

Packages

No packages published