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

Problems with calendar and "enter" key

P: 1
Hi, I have 2 questions please:

1. I have a calendar in javascript and it works well but every time I hit "enter" anywhere in my form it appears again.What do I need to do for this not to happen?

2. When I select a date in the calendar it appears in a text field but the focus is lost .I want to get the focus in another text field after selecting the date.What do I need to do?

Jun 28 '06 #1
Share this Question
Share on Google+
1 Reply

P: 12
hey janice

i have a suggestion that when u enter in the form it gets submitted right. this code solves ur probs

function noEnter(e)
var characterCode
if(e && e.which)
e = e
characterCode = e.which
e = event
characterCode = e.keyCode
if(characterCode == 13)
return false;
return true;

Jun 29 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.