For all inputs in the given div, enter means submit!
It'll trigger a submit for the first submit button it finds in that div.
npm install enter-means-submit
In your browser (with browserify)
var enterMeansSubmit =var forms = document
Typing "enter" in the
input element triggers a click event for the button with
type="submit". In this example,
submit() would be called.
You can also call
enter-means-submit with one element.