I have a radcombox and a span next to each other. I want to set the style.display = "none" of sBtns when a certain item is selected in the combo box. How do I access the span object in client side script?
Thanks in advance.
| <telerik:radcombobox id="cboPortfolioView" runat="server" tabindex="1" |
| onclientselectedindexchanged="SectorAcctTypeDisplay"> |
| </telerik:radcombobox> |
| <span id="sBtns" runat="server"> |
| <asp:RadioButton ID="radAll" runat="server" Checked="True" GroupName="SectorAcctType" |
| Text="All" /> |
| <asp:RadioButton ID="radAfs" GroupName="SectorAcctType" Text="AFS" runat="server" /> |
| <asp:RadioButton ID="radHtm" GroupName="SectorAcctType" Text="HTM" runat="server" /> |
| </span> |
| <script language="javascript" type="text/javascript"> |
| <!-- |
| function SectorAcctTypeDisplay(sender, eventArgs) { |
| var item = eventArgs.get_item(); |
| var val = item.get_value(); |
| alert("val: " + val); |
| if (val == "0") { |
| sBtns.style.display = "none"; |
| } |
| } |
| --> |
| </script> |
Thanks in advance.