Jquery Tab Control doesn't Work in SharePoint Custom Form Template
<p>All</p>

<p>I have created a custom webpart for my list instance. This webpart is inserted within a RenderTemplate for the list. I have several Jquery Libraries loading within the webpart. For the most part it seems that it works but none of the tabs work they actually redirect to entire different page with the same contents. I am not sure if I am doing this correctly or what but below is my template and custom webpart.</p>

<p>Here is the web part</p>

<pre><code>&lt;SharePointWebControls:CssLink runat="server" DefaultUrl="/_layouts/css/jquery-ui-1.8.23.custom.css" /&gt;
</code></pre>

<p>
</p>


    $(function () {
        $("#accordion").accordion();
    });


<pre><code>&lt;div id="Accordion" style="font-size: x-small;"&gt;
&lt;h3&gt;
    &lt;a href="#"&gt;Required Information&lt;/a&gt;&lt;/h3&gt;
&lt;div id="RequiredInformation"&gt;
    &lt;b&gt;Hello World&lt;/b&gt;
&lt;/div&gt;
&lt;h3&gt;
    &lt;a href="#"&gt;Manager's Approval&lt;/a&gt;&lt;/h3&gt;
&lt;div id="ManagersApproval"&gt;
    &lt;b&gt;hello World&lt;/b&gt;
&lt;/div&gt;
&lt;h3&gt;
    &lt;a href="#"&gt;IS Approval&lt;/a&gt;&lt;/h3&gt;
&lt;div id="ISApproval"&gt;
    &lt;b&gt;Hello World&lt;/b&gt;
&lt;/div&gt;
</code></pre>

<p></p>

<p>Here is the template</p>

<pre><code>    &lt;SharePoint:RenderingTemplate ID="CyberQueryRequestTemplate" runat="server"&gt;
&lt;Template&gt;
    &lt;span id='part1'&gt;
        &lt;SharePoint:InformationBar ID="InformationBar1" runat="server" /&gt;
        &lt;div id="listFormToolBarTop"&gt;
            &lt;wssuc:ToolBar CssClass="ms-formtoolbar" ID="toolBarTbltop" RightButtonSeparator="&amp;#160;"
                runat="server"&gt;
                &lt;Template_RightButtons&gt;
                    &lt;SharePoint:NextPageButton runat="server" /&gt;
                    &lt;SharePoint:SaveButton runat="server" /&gt;
                    &lt;SharePoint:GoBackButton runat="server" /&gt;
                &lt;/Template_RightButtons&gt;
            &lt;/wssuc:ToolBar&gt;
        &lt;/div&gt;
        &lt;SharePoint:FormToolBar ID="FormToolBar1" runat="server" /&gt;
        &lt;SharePoint:ItemValidationFailedMessage ID="ItemValidationFailedMessage1" runat="server" /&gt;
        &lt;table class="ms-formtable" style="margin-top: 8px;" border="0" cellpadding="0" cellspacing="0"
            width="100%"&gt;
            &lt;SharePoint:ChangeContentType ID="ChangeContentType1" runat="server" /&gt;
            &lt;SharePoint:FolderFormFields ID="FolderFormFields1" runat="server" /&gt;
            &lt;muc:CQRTDesign ID="EditForm1" runat="server" /&gt;
            &lt;SharePoint:ApprovalStatus ID="ApprovalStatus1" runat="server" /&gt;
            &lt;SharePoint:FormComponent ID="FormComponent1" TemplateName="AttachmentRows" runat="server" /&gt;
        &lt;/table&gt;
        &lt;table cellpadding="0" cellspacing="0" width="100%"&gt;
            &lt;tr&gt;
                &lt;td class="ms-formline"&gt;
                    &lt;img src="/_layouts/images/blank.gif" width='1' height='1' alt="" /&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
        &lt;/table&gt;
        &lt;table cellpadding="0" cellspacing="0" width="100%" style="padding-top: 7px"&gt;
            &lt;tr&gt;
                &lt;td width="100%"&gt;
                    &lt;SharePoint:ItemHiddenVersion ID="ItemHiddenVersion1" runat="server" /&gt;
                    &lt;SharePoint:ParentInformationField ID="ParentInformationField1" runat="server" /&gt;
                    &lt;SharePoint:InitContentType ID="InitContentType1" runat="server" /&gt;
                    &lt;wssuc:ToolBar CssClass="ms-formtoolbar" ID="toolBarTbl" RightButtonSeparator="&amp;#160;"
                        runat="server"&gt;
                        &lt;Template_Buttons&gt;
                            &lt;SharePoint:CreatedModifiedInfo runat="server" /&gt;
                        &lt;/Template_Buttons&gt;
                        &lt;Template_RightButtons&gt;
                            &lt;SharePoint:SaveButton runat="server" /&gt;
                            &lt;SharePoint:GoBackButton runat="server" /&gt;
                        &lt;/Template_RightButtons&gt;
                    &lt;/wssuc:ToolBar&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
        &lt;/table&gt;
    &lt;/span&gt;
    &lt;SharePoint:AttachmentUpload ID="AttachmentUpload1" runat="server" /&gt;
    &lt;div&gt;
        My template&lt;/div&gt;
&lt;/Template&gt;
</code></pre>

<p></p>
