Java Script for validating multiple radibutton groups

Discussion in 'JavaScript' started by mahi_mukka, Mar 9, 2010.

  1. #1
    Dear All,
    I would like to have one questionare it consists of 5 questions and has got 5 options as an answer.
    Conditions are
    1.All questions must be answered.
    2. If any question is not answered on submit i have to get error message "U have not answered All the questions."
    3. Kindly answer the question numbers 2,5 ( If question no 2 and questions no 5 is not answered.)


    For that i have created radio buttons group and wrote validation code.But its validating only one question not to rest of others questions.If some one misses any questions it is submitting answer .

    I will be glad if u can help me in code snippets.... resources n demo links will be appriciated.
    Thanks in advance
     
    mahi_mukka, Mar 9, 2010 IP