我在divjsp页面中添加了一个单选按钮.但是新添加的单选按钮总是在选择,当我点击第二个单选按钮时,它也会选择.有没有写入此脚本的脚本.
<div style="padding-left:15px">
<div>
Entry Mode Code was:
</div>
<div style="padding-left:30px">
<div>
<html:radio name="caseForm" property="questionnaire.RP0062.posEntryModeCd" value="A" styleId="posEntryModeCda"> 05 - Chip Card read (data is reliable)</html:radio>
</div>
<div>
<html:radio name="caseForm" property="questionnaire.RP2462.posEntryModeCd" value="B"> 90 - Magnetic Stripe Terminal and the full unaltered contents of the selected track is included</html:radio>
</div>
<div>
<html:radio name="caseForm" property="questionnaire.RP2462.posEntryModeCd" value="C" > Not Applicable</html:radio>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
附图:

对于property所有三个单选按钮的属性,您应该具有相同的值,即property="questionnaire.RP2462.posEntryModeCd"对于所有三个按钮的属性:
<div>
<html:radio name="caseForm" property="questionnaire.RP2462.posEntryModeCd" value="A" styleId="posEntryModeCda"> 05 - Chip Card read (data is reliable)</html:radio>
</div>
<div>
<html:radio name="caseForm" property="questionnaire.RP2462.posEntryModeCd" value="B"> 90 - Magnetic Stripe Terminal and the full unaltered contents of the selected track is included</html:radio>
</div>
<div>
<html:radio name="caseForm" property="questionnaire.RP2462.posEntryModeCd" value="C" > Not Applicable</html:radio>
</div>
Run Code Online (Sandbox Code Playgroud)
希望这可以帮助