0
<cc1:Accordion ID="Accordion2" runat="server" SelectedIndex="0" 
        TransitionDuration="300" FadeTransitions="true" 
        style="position:absolute; top: 1417px; left: 307px; height: 136px;">
        <Panes>
        <cc1:AccordionPane runat="server">
        <Header>SINGLE PRODUCT</Header>
        <Content>
        
    <table bgcolor="#E4D7D1">
        <tr>
            <td class="heading" colspan="4">
        Single Product
        </td>
        </tr>
        <tr>
            <td class="text">
                <asp:RadioButton ID="chkHomePhone" runat="server" Text="Home Phone" 
                    GroupName="Category" />
            </td>
            <td class="text">
                <asp:RadioButton ID="chkInterNet" runat="server" Text="Inter Net" 
                    GroupName="Category" />
            </td>
            <td class="text">
                <asp:RadioButton ID="chkTv" runat="server" Text="Television" 
                    GroupName="Category" />
            </td>
        </tr>
        </table>
        </Content>
        </cc1:AccordionPane>


function Validations()
	{
	
	if(document.getElementById("chkHomePhone").checked==true) 
	{
	alert("PLEASE SELECT ANY PRODUCT CETEGORY");
	return false;
	}
	}

 <asp:Button ID="btnAdd" runat="server" Text="ADD" OnClientClick="return Validations()"
                    OnClick="btnAdd_Click" class="button"/>

it works fine when i place chkHomPhone out of Accoridanpane but when i place it in accordianpane it says object is required any idea plssssss

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Ramesh S
0

Hi,

The ID of the 'chkHomePhone' will be prefixed with the parent control names when you put the control inside containers such as Accordian control. Find the actual ID of the control by opening the aspx page in IE ->Righ click->View Source in IE. The control ID will look like 'ctl00_SomeContent_AccordionPane1_chkHomePhone'. Use this ID in JavaScript.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.