javascript field check

K

kdavis004

Hello,

I'm having some problem with checking with the follwoing code:

if (appForm.q15a.checked==true && appForm.q15cert.value==""){
alert ("You must enter value!!!!")
valid = false;
}

What I'm trying to do is have the user enter some data based upon if
the radio button is true and the text field is empty. What could be
wrong with the following code above.

Kevin Davis
 
D

darwinist

Hello,

I'm having some problem with checking with the follwoing code:

if (appForm.q15a.checked==true && appForm.q15cert.value==""){
alert ("You must enter value!!!!")
valid = false;
}


If you include the relevant bits of html, it will be more likely that
people will know what you mean.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top