这是我的代码
<asp:RadioButtonList ID="PlaceofWork" name="PlaceofWork" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
</asp:RadioButtonList>
后面的代码:
PlaceofWork.DataSource = workplace;
PlaceofWork.DataBind();
PlaceofWork.Items.Add(new ListItem("Other - Specify<input name=\"OtherWorkPlace\" type=\"text\" id=\"OtherWorkPlace\" MaxLength=\"25\"/>", "19"));
由于某种原因,我有另一个必须手动添加项目的单选按钮列表,代码如下:
<asp:RadioButton ID="DPC23" GroupName="Responsibility" class="Responsibility" runat="server" Text="PeriAnesthesia/RR" value="26" />
<asp:RadioButton ID="DPC24" GroupName="Responsibility" class="Responsibility" runat="server" Text="Other–Specify <input id='OtherDPC' type='text' MaxLength='25'/>" value="19" />
现在的问题是当代码在chrome中运行时,一切正常,但是当它在IE中打开时,PlaceofWork中的文本框不起作用,当我单击文本框时,它会失去光标,但手动添加的单选按钮有效很好,有人知道为什么会这样吗??