hi
i need form dependency.
Can u check below code?
[HTML]
<p>1. Are you married?</p>
<p>
<label>
<input type="radio" name="married" value="Yes" />
Yes</label>
<label>
<input type="radio" name="married" value="No" />
No</label>
</p>
<p> </p>
<p>If "Yes&qu ot; please enter below details. </p>
<p>1.1. How many Children? :
<input name="how_many_ child" type="text" id="how_many_ch ild" size="5" maxlength="2" />
</p>
<p>1.2. Name of the Children (Seperate with commas) :
<input name="child_nam e" type="text" id="child_name " size="25" maxlength="250" />
</p>
<p>1.3. Are you done operation? </p>
<p>
<label>
<input type="radio" name="operation " value="Yes" />
Yes</label>
<label>
<input type="radio" name="operation " value="No" />
No</label>
</p>
<p> </p>
<p>If "No&quo t; please enter below details. </p>
<p>1.3.1. Why? :
<input name="why" type="text" id="why" size="25" maxlength="150" />
</p>
<p>1.3.1. Any health problems you hve? :
<input name="health_pb m" type="text" id="health_pbm " size="25" maxlength="150" />
</p>
[/HTML]
If i click Yes for 1 ques. tht time only apper below tags. i.e. 1.1, 1.2, & 1.3.
If i click No for 1.3 ques. tht time only appear below tags. i.e. 1.3.1 & 1.3.2
How can i make? Anybody help???
i need form dependency.
Can u check below code?
[HTML]
<p>1. Are you married?</p>
<p>
<label>
<input type="radio" name="married" value="Yes" />
Yes</label>
<label>
<input type="radio" name="married" value="No" />
No</label>
</p>
<p> </p>
<p>If "Yes&qu ot; please enter below details. </p>
<p>1.1. How many Children? :
<input name="how_many_ child" type="text" id="how_many_ch ild" size="5" maxlength="2" />
</p>
<p>1.2. Name of the Children (Seperate with commas) :
<input name="child_nam e" type="text" id="child_name " size="25" maxlength="250" />
</p>
<p>1.3. Are you done operation? </p>
<p>
<label>
<input type="radio" name="operation " value="Yes" />
Yes</label>
<label>
<input type="radio" name="operation " value="No" />
No</label>
</p>
<p> </p>
<p>If "No&quo t; please enter below details. </p>
<p>1.3.1. Why? :
<input name="why" type="text" id="why" size="25" maxlength="150" />
</p>
<p>1.3.1. Any health problems you hve? :
<input name="health_pb m" type="text" id="health_pbm " size="25" maxlength="150" />
</p>
[/HTML]
If i click Yes for 1 ques. tht time only apper below tags. i.e. 1.1, 1.2, & 1.3.
If i click No for 1.3 ques. tht time only appear below tags. i.e. 1.3.1 & 1.3.2
How can i make? Anybody help???
Comment