• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to deny the Enter key press action

 
Harish Muthuraman
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a text box in the .jsp file.
Present condition : when the user enters the value in the text field and hits 'Enter' key the page is submitted.
Required : When Enter key is hit, the page must not be submitted.

Can any one help??
 
Avishkar Nikale
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is more of a HTML/Javascript question & you will need to learn javascript events to this.

Enough help will be available on forum & internet.

http://www.coderanch.com/t/115776/HTML-JavaScript/Form-Submit-Hitting-Enter-key
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the HTML forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic