Im totally new to javascript. Im working on a webpage that I need to
make sure the user has checked at least one answer to each question
in the list. I cant seem to figure out the logic or something.
All the input lines in html look like this:
1. <INPUT TYPE=RADIO NAME="PCLM1" VALUE="disagree strongly">
not at all<INPUT TYPE=RADIO NAME="PCLM1" VALUE="disagree ">
a little bit <INPUT TYPE=RADIO NAME="PCLM1" VALUE="neutral" >
moderately <INPUT TYPE=RADIO NAME="PCLM1" VALUE="agree">q uite a bit <INPUT TYPE=RADIO NAME="PCLM1" VALUE="agree strongly">extre mely<BR>
All are named PCLMx
there are 17 of these. I need a script that will tell me when one or more
of the answers were not checked at all so the user can complete the form
and I can move on.
I have the post line working ok to call my script, just not the logic:
<form method="POST" action="http://www.site.com/cgi-bin/mil_pclm.pl" onSubmit="retur n check_form(this );">
Ive looked all over the web and cant seem to find an answer to this particular
problem.
I need your help :)
Thank you so much!
Jeff
--
If you falter in times of trouble, how small is your strength!
- Proverbs 24:10 (NIV)
make sure the user has checked at least one answer to each question
in the list. I cant seem to figure out the logic or something.
All the input lines in html look like this:
1. <INPUT TYPE=RADIO NAME="PCLM1" VALUE="disagree strongly">
not at all<INPUT TYPE=RADIO NAME="PCLM1" VALUE="disagree ">
a little bit <INPUT TYPE=RADIO NAME="PCLM1" VALUE="neutral" >
moderately <INPUT TYPE=RADIO NAME="PCLM1" VALUE="agree">q uite a bit <INPUT TYPE=RADIO NAME="PCLM1" VALUE="agree strongly">extre mely<BR>
All are named PCLMx
there are 17 of these. I need a script that will tell me when one or more
of the answers were not checked at all so the user can complete the form
and I can move on.
I have the post line working ok to call my script, just not the logic:
<form method="POST" action="http://www.site.com/cgi-bin/mil_pclm.pl" onSubmit="retur n check_form(this );">
Ive looked all over the web and cant seem to find an answer to this particular
problem.
I need your help :)
Thank you so much!
Jeff
--
If you falter in times of trouble, how small is your strength!
- Proverbs 24:10 (NIV)
Comment