Enterkey
2005/09/02 17:16
Viewed 5166 times
Replies: 2/2
by raj

Pardon my ignorance. I am not a programmer but I like to play around from time to time.

Here is my (stupid) question..

I am using multiple calendars (for multiple input fields) on the same page. when I hit enter key by default it invokes the first calendar. How do I stop that?

by default it should submit the form not invoke the calendar..

any gurus out there?

Re: Enterkey
2005/09/08 17:02
Viewed 6389 times
Replies: 0/0
by raj

any takers? Please

last
Re: Enterkey
2008/03/03 03:02
Viewed 1488 times
Replies: 0/0

I was struggling with this as well. If you are using a button as your calendar popup, it defaults to being a submit button. Hitting enter in the form defaults to the first submit button it finds which is your calendar popup button.

To fix this, change the calendar popup button and add the attribute:
type="button"

This changes default type from being submit to button, which your form will no longer consider a candidate to fire when enter is pressed.

last
Google