我有以下html:
<input type="radio" name="Ctrl_DondeCobrar" id="Ctrl_DondeCobrar1" value=" <%=TrdsINC.getTraduce(CodigoFormularioINC,TipoFormularioINC3,TTidioma,"lit004")%>"/>
<label class="literalRegistro"> <%=TrdsINC.getTraduce(CodigoFormularioINC,TipoFormularioINC3,TTidioma,"lit004")% >:</label>
<input type="radio" name="Ctrl_DondeCobrar" id="Ctrl_DondeCobrar2" value="<%=TrdsINC.getTraduce(CodigoFormularioINC,TipoFormularioINC3,TTidioma,"lit012")%>"/>
<label class="literalRegistro"> <%=TrdsINC.getTraduce(CodigoFormularioINC,TipoFormularioINC3,TTidioma,"lit012")%>:</label>
在javascript中我使用
if (Ctrl_DondeCobrar[0].checked)
Internet Explorer中的此代码有效,但在Firefox中我收到消息
ReferenceError: Ctrl_DondeCobrar is not defined
有人可以帮我修复此错误吗?
提前致谢
Carlota Vina