I have asp.net checkbox that I hide. There is another control that I attached onclick function that is supposed to unhide the checkbox. All is well and it seems that the function finds the checkbox OK but it stays hidden. No JS error is reported. What is wrong? Here is control
<td><asp:checkbox id="chkTelephoneDictation1" style= "display:none" runat="server" Width="240px"></asp:checkbox></td>
Here is JS to unhide
function Unhide()
{
var dictation = document.getElementById('chkTelephoneDictation1');
dictation.style.display = "block";
//also tried dictation.style.display = "";
<td><asp:checkbox id="chkTelephoneDictation1" style= "display:none" runat="server" Width="240px"></asp:checkbox></td>
Here is JS to unhide
function Unhide()
{
var dictation = document.getElementById('chkTelephoneDictation1');
dictation.style.display = "block";
//also tried dictation.style.display = "";