Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Capture Enter Key

 
sourav sen
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm developing a website using PHP, Javascript and MySQL.

I have a login form with a couple of textboxes and a login button. What I
want to do is capture the Enter key so that when the user presses Enter, it will behave like tab and throw the onchange event (written for each field).

I have searched the Internet for hours now trying to find out how to do it,
but any methods that I have seen do not work.

Can anyone help me do that?

Regards,
Sourav
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reason you are not using the onsubmit handler on the form to do the validations?

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic