how to get the focus to a button on pressing the "enter" key in the key board

Posted by subash on Stack Overflow See other posts from Stack Overflow or by subash
Published on 2010-05-24T09:46:26Z Indexed on 2010/05/24 9:51 UTC
Read the original article Hit count: 252

Filed under:
|

i have a aspx page with two buttons,"close" and "submit" button.when i press the enter key in the keyboard the focus automatically goes to "close" button and closes the page.Instead i want the focus to be focused on the "submit" button on pressing the enter key in the keyboard.

© Stack Overflow or respective owner

Related posts about button

Related posts about setfocus