asp hide radiobutton label

sexy_boy

New Member
I'm having trouble hiding the text on a radio button. Here's asp for the radios...\[code\]<asp:RadioButton ID="rdViewPrint" Text="View/Print" runat="server" OnClick="javascript:disableFields();" GroupName="viewSend" Checked="True" style="margin-left:10px;" /><asp:RadioButton ID="rdEmail" Text="Email" runat="server" OnClick="javascript:emailFields();" GroupName="viewSend" style="margin-left:10px;" /><asp:RadioButton ID="rdFax" Text="Fax" runat="server" OnClick="javascript:faxFields();" GroupName="viewSend" style="margin-left:10px;" />\[/code\]on page load, a javascript function runs the function below. The cirles of the radio buttons are hidden, but the text remains.\[code\]function noVisit() { document.getElementById('<%=lblViewSend.ClientID%>').style.display = "none"; document.getElementById('<%=rdViewPrint.ClientID%>').style.display = "none"; document.getElementById('<%=rdEmail.ClientID%>').style.display = "none"; document.getElementById('<%=rdFax.ClientID%>').style.display = "none"; document.getElementById('<%=btnFull.ClientID%>').style.display = "none"; document.getElementById('<%=btnSummary.ClientID%>').style.display = "none"; document.getElementById('<%=btnPrivate.ClientID%>').style.display = "none";}\[/code\]Why does the text not get hidden, and how do I make it not visible?Thanks, Dave K.
 
Back
Top