Witam forumowiczów.Mam kłopot z rozszyfrowaniem ukrytego pola tekstowego po kliknięciu na pole RADIO ( opcja Marital status => Divorced ), przykład na stronie
www.quirksmode.org/dom/usableforms.htmlNijak mimo wielu prób wychodzi cały formularz ale bez tego ukrytego pola. Czy byłby ktoś pomocny i doradził co jest z tym kodem nie tak ?
Dokładnie muszę zrobić formularz m.in. z 2 polami RADIO z możliwością wyboru tylko 1 z nich gdzie dodatkowo przy jedym z pól RADIO jest ukryty po jego wybraniu pole TEXT.
<script type="text/javascript" src="/correct/path/usableforms.js"></script>
<tr>
<td class="question"><label for="country_other">Country</label></td>
<td>
<input type="checkbox" name="country_other" id="country_other" rel="other_country" />
Other than The Netherlands
</td>
</tr>
<tr rel="other_country">
<td class="question"><label for="other_country">
<span class="accessibility">If not the Netherlands:</span> Which other country?</label></td>
<td><input name="other_country" id="other_country" /></td>
</tr>
<tr>
<td class="question">Marital status</td>
<td>
<input type="radio" name="marital" value="single" rel="none" id="marital_single" />
<label for="marital_single">Single</label><br />
<input type="radio" name="marital" value="married" rel="marriageContract" id="marital_married" />
<label for="marital_married">Married</label><br />
<input type="radio" name="marital" value="divorced" rel="divorceDetails" id="marital_divorced" />
<label for="marital_divorced">Divorced</label><br />
</td>
</tr>
<tr rel="marriageContract">
<td class="question"><label for="marriage_contract">
<span class="accessibility">If Married:</span> Marriage contract?</label></td>
<td><input type="checkbox" name="marriage_contract" id="marriage_contract" /> Yes</td>
</tr>
Ten post edytował venomek 16.02.2012, 23:27:17