Two forms. Two options for people to search. Different kind of data sets. They can either enter in one or the other.
Just want to make sure something was entered on the page somewhere before they hit a submit button. Or maybe, that in the form button they do submit, something was freeking entered. Maybe that's the normal ticket. Thanks, -------------------------------------------------------- Eric J. Hoffman Managing Partner 2081 Industrial Blvd StillwaterMN55082 mail: [EMAIL PROTECTED] www: http://www.ejhassociates.com tel: 651.717.4105 fax: 651.717.4115 mob: 651.245.2717 -------------------------------------------------------- This message contains confidential information and is intended only for [EMAIL PROTECTED] If you are not cf-talk@houseoffusion.com you should not disseminate, distribute or copy this e-mail. Please notify [EMAIL PROTECTED] immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Eric J. Hoffman therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -------------------------------------------------------- -----Original Message----- From: Jim Wright [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 9:08 AM To: CF-Talk Subject: Re: More of a JS Question/Forms > I have two forms, and I just want to check if no value has been > entered in either form, and pop to tell the user to enter something! > So I can't do a required field in my validation because they can fill > in one of three fields or more in one form, but not the other. Eric, While Charlie's getElementById code will probably work fine for what you are talking about, I'm a little confused about the two forms. Are these forms on the same page/frame? When you submit one, you would lose anything that was entered on the other, unless you do some onSubmit javascript to capture and pass that data through the form you are submitting...so validating on data that is going to be lost seems odd. Or are you just saying that these are two parts of the same form? -jim -- Jim Wright Wright Business Solutions [EMAIL PROTECTED] 919-417-2257 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239176 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54