Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Form is submitting when ENTER is pressed? Can I deactivate this?
Old 04-02-2008, 03:48 PM Form is submitting when ENTER is pressed? Can I deactivate this?
Novice Talker

Posts: 11
Name: Nicolas Copia
Location: Las Vegas
Trades: 0
I am finished building this form:

http://www.liveindierockwars.com/discount.html

I noticed while the end-user is filling out the form, if they accidentally hit enter it will submit the form. While this form does have massive validation on it ....I would still like to make ENTER disabled to where they HAVE to click the "Purchase Tickets" button. Is there any code I can add to my submit button to accomplish this? Thank you in advance!
Nick5185 is offline
Reply With Quote
View Public Profile Visit Nick5185's homepage!
 
 
Register now for full access!
Old 04-02-2008, 04:37 PM Re: Form is submitting when ENTER is pressed? Can I deactivate this?
Novice Talker

Posts: 11
Name: Nicolas Copia
Location: Las Vegas
Trades: 0
found the answer..... like i usually do, I should start going to forums last

onkeypress=”return event.keyCode!=13″

that needs to be added into your form
Nick5185 is offline
Reply With Quote
View Public Profile Visit Nick5185's homepage!
 
Reply     « Reply to Form is submitting when ENTER is pressed? Can I deactivate this?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.35687 seconds with 12 queries