我有一个带有单选按钮和一个文本字段的表单。如果所选收音机的值为 96 或 97,我如何使文本字段成为强制性的。到目前为止,我的代码如下
<p style="margin: 0px 4px 1px 4px;padding: 4px 0 4px 0; background:#FFF"><input type="radio" name="qID18" value="96" class="required" /> All Festivals / Events </p>
<p style="margin: 0px 4px 1px 4px;padding: 4px 0 4px 0; background:#FFF"><input type="radio" name="qID18" value="97" class="required" /> Similar Festivals / Events </p>
<p style="margin: 0px 4px 1px 4px;padding: 4px 0 4px 0; background:#FFF"><input type="radio" name="qID18" value="98" class="required" /> No thank you </p>
<p style="margin: 0px 4px 1px 4px;padding: 4px 0 4px 0; background:#FFF"> Enter Email To Send Information To: <input type="text" name="something" ></p>