[jQuery] Submit form when hitting enter
I have a form that I built, and I replaced the submit button with an
image. When you click the image, it calls the .submit() jQuery
function and submits the form.
Because I am not using the normal submit input button, hitting enter
in most browsers won't submit the form. I think that users are used
to this happening, so I would like to replicate this.
What would I need to do? Can I trigger the .submit() function when
the enter button is hit?