469,623 Members | 969 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

Problems with calendar and "enter" key

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
1 1893
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.

By using this site, you agree to our Privacy Policy and Terms of Use.