I have two divs that sit inside a repeater. Basically the div's class names gets set based on what ever my code behind functions return. 
However, I want to be able reference these divs within my javascript which i'm unsure on how to do. 

```
 <asp:Repeater ID="rptdivisions" runat="server">
                    <ItemTemplate>
                        <div class='<%# getDivHeaderClass(Eval("Division").ToString())%>'>
                           <%# Eval("Division")%>
                        </div>
                        <div class='<%# getDivMainClass(Eval("Division").ToString())%>'>
                            <br />
                            <dx:ASPxGridView ID="gvrecords" runat="server" ClientInstanceName="gvCentral" AutoGenerateColumns="False" OnHtmlDataCellPrepared="gvrecords_HtmlDataCellPrepared">
                                <Columns>
                                    <dx:GridViewDataTextColumn Caption="Product Code " VisibleIndex="0" FieldName="code"></dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Description" VisibleIndex="1" FieldName="description"></dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Packsize" VisibleIndex="2" FieldName="packSize"></dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Barcode" VisibleIndex="3" FieldName="barcodeUnit"></dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Expiry Date" VisibleIndex="4" FieldName="ExpiryDate"></dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Quantity" VisibleIndex="5" FieldName="packQuantity"></dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Zone ID" VisibleIndex="6" FieldName="ZoneID"></dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Location ID" VisibleIndex="7" FieldName="LocationID"></dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Date Recorded" VisibleIndex="8" FieldName="DateRecorded"></dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Average WK Sales" VisibleIndex="9" FieldName="AverageWkSales"></dx:GridViewDataTextColumn>
                                </Columns>
                                <ClientSideEvents EndCallback="function(s, e){Dcs.load()}" />
                                <SettingsText Title="Central" />
                            </dx:ASPxGridView>
                        </div>
                        <br />
                    </ItemTemplate>
                </asp:Repeater>

```

Javascript is:

```
    $(function () {
        $(document).on('click', '.headerdiv', function () {
            $(".maindiv").toggle("slow");
        });
    });

```