Leonard Wong leothelion96 Leonard Wong leothelion96 - 5 months ago 29
HTML Question

Remove span tag generate by checkbox

How do I remove the span tag generated by the checkbox?

<asp:CheckBox ID="CheckBox_select" type="checkbox" runat="server" onclick="javascript:CheckCheckBox(this);" />

Answer

Move to html input tag but with runat="server"

<input type="checkbox" id="CheckBoxSelect" runat="server" onclick="javascript:CheckCheckBox(this);" />

HTML server-side control

Comments