I'm encountering an issue where I can successfully remove a checkbox client-side in Chrome, but I'm struggling to do the same in IE8.
document.getElementById('CheckBox3').style.display = 'none';
I've experimented with style.visibility = 'hidden'
, style.visibility = 'collapse'
, and disabling the CheckBox. While these methods work for removing a label positioned beside the checkbox, none seem to work on the checkbox itself.
Any suggestions or alternatives?
<td class="DatapointsCheckbox">
<asp:CheckBox ID="CheckBox3" runat="server" AutoPostBack="True" />
</td>
This is the markup structure.
.DatapointsCheckbox
{
width: 40px;
}
This is the CSS code...
Image: https://i.sstatic.net/xYQJN.png HTML Markup: https://i.sstatic.net/3cinf.png (Screenshot of relevant markup included)