I have a similar problem, I have a form with a series of yes/no radio boxes and 'why' textareas. I need the text areas to be required, but ONLY if the corresponding 'no' radio button has been selected.
Code:
<p>1. *Question goes here*</p>
<p>
<label>
<input type="radio" name="1" value="Yes" id="1_0" />
Yes</label>
<br />
<label>
<input type="radio" name="1" value="No" id="1_1" />
No</label>
<label></label>
<br />
</p>
<p> </p>
<p>1a. If not, why not?</p>
<p> </p>
<p>
<textarea name="1a" id="1a" cols="60" rows="5"></textarea>
</p>
I only have a vague idea what magicyte is talking about. Anyone have a piece of sample code I can play with?
Bookmarks