<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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.