[Locked] Can't get my Javascript to work
I have a questionnaire form where in many cases, the answer from one question - they're mostly "Yes/No" radio button groups - determines which question is next. I've successfully used some javascript functions to move the focus accordingly, but there's one troublesome situation. When Question 1 is answered "No", focus goes directly to Ques. 2 - this works fine. If, however, the answer is "Yes", I have to display a date-of-birth in a readonly text field, then immediately go to question 2; The dob is stored in a variable ($dob) which was passed via a file (for now) from the previous form, and fetched by a php script when the form loads. I've been trying all day to make this happen; I must have tried a hundred different ways, and I've exhausted the w3 schools tutorials & references. Can someone tell me how to do this?
Heres a picture of the first two questions on the form:
Yes No 1. Are you at least age 16, but under age 40? Date Of Birth (w/only show if Yes):
Yes No 2. Are you an active duty Veteran of the U. S. Armed Forces (If No, Question 3 w/be next)?
There's a read only text field at the end of the question 1 line, which stays blank if the answer is No, but is to display the dob if the answer is Yes. The field never needs to have focus.
