HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 5th, 1999, 09:09 AM
Harbinger
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I just finished making a JavaScript quiz. It made the default answer "A" in the form so the user couldn't enter an undefined answer. Now, I am trying to make it so there is no default answer, and if the user doesn't answer the question, a pop-up window will appear informing the user that he/she didn't answer howevermany questions. The only problem is that I can't figure out how to test the form to see if one of the answers is undefined. I tried:
if (document.answers.elements[i] == ""), and
if (!document.answers.elements[i].checked), but those didn't work. Any help on this matter would be greatly appreciated.

Reply With Quote
  #2  
Old October 14th, 1999, 03:30 PM
scollo
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Is "answers" the name of your form?

Try:

document.answers.elements[i].value == ""

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Form Problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway