Tuesday, August 13, 2013

Avoid submitting form when enter key is pressed

Sometimes, you have to avoid submitting page when enter key is pressed. You need to add following style to  text box.

<input id="txtName" name="txtName" style="display: none;" type="text" />