ここに私のコードがあります
<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" />
問題は、コードがクロムで実行されている場合、すべて問題ありませんが、IEで開くと、PlaceofWorkのテキストボックスが機能せず、テキストボックスをクリックするとカーソルが失われますが、手動で追加されたラジオボタンは機能します大丈夫です、なぜこれが起こるのか誰か知っていますか??