Submitting form by hitting enter on keyboard
<p>Currently my team has this <code>(onKeyPress="keyPress(event))</code> defined for each field in a form. So if i have 20 fields then it is defined 20 times. I am wondering if it is possible to define this at the form level rather than field so we only define it one and not 20 times?</p>

<p>Using PHP codeignitor.</p>
