how can we prevent a form from being submitted while pressing enter key.
Actually I have a text box and on entering a value on that textbox and clicking enter the textbox2 will get focused.
By default on clicking the enter button the form will get submitted. So I can not get the out put. I wrote return false on onclick event of the submit button then it works. So I would like to know how can we prevent a form submission while pressing enter.