check if the given form element is submittable.
Install with component(1):
$ component install yields/submittable
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
MIT