AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need help using onClick and onSubmit in a form

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.javascript
View previous topic :: View next topic  
Author Message
Curtis Morrison
Guest





PostPosted: Sun May 16, 2004 6:40 am    Post subject: Need help using onClick and onSubmit in a form Reply with quote



I have a javascript function that disables the form submit button if it has
already been submitted and another javascript function that does an email
address validation. If I remove the onClick event from the submit button,
the email handler works fine (and vice-versa), but neither work if both are
present.

<form action="" method="post" name="feedback" id="feedback" title="Feedback
form" lang="en" onSubmit="return emailCheck(this.email.value)">


<input name="continue" type="submit" id="continue" tabindex="12"
onClick="return checksubmit(this)" value="Continue">

Can anyone please tell me what the best way would be to do this?

Thanks,
Curt




----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.javascript All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.