javascript field check

Discussion in 'Javascript' started by kdavis004@msn.com, Aug 4, 2006.

  1. Guest

    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
    , Aug 4, 2006
    #1
    1. Advertising

  2. Guest

    wrote:
    > 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.

    > 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
    , Aug 4, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page