By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,989 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,989 IT Pros & Developers. It's quick & easy.

keyup problems

P: n/a
I have a form with two text boxes and a two buttons.
I want when a user press Enter key when in first text box, the focus moves
to the second and agian when in second and the enter key is pressed the
focus moves to the one of the buttons.

I have done that, and it work fine, but my Form has an Accept button set to
this first button and every time the user presses Enter the button's code is
also executed.

How to prevent this?
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Hi Nilolay
this is normal that the button code is excuted . Since it is set as the
accept button of your from, its code is executed with an enter press on the
from .
In this case you might remove the your button from being the accept button
of the form

Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.