jquery accordion with tabs
<p>Being a newbie I have read forums and posts but still can't work out how to have tabs inside accordions. I'm using the following. No Ajaxed content.</p>

<p>

    
        
        jQuery UI Example Page
         
        
        
        </p>

<pre><code>        $(function() {
            $("#accordion").dialog({
                open: function(){
                    $("#tabs").tabs();
                }
            });
        });

    &lt;/script&gt;
    &lt;style type="text/css"&gt;
        /*demo page css*/
        body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;}
        .demoHeaders { margin-top: 2em; }
        #dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
        #dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
        ul#icons {margin: 0; padding: 0;}
        ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left;  list-style: none;}
        ul#icons span.ui-icon {float: left; margin: 0 4px;}
    &lt;/style&gt;    
&lt;/head&gt;
&lt;body&gt;

    &lt;!-- Accordion --&gt;
    &lt;h2 class="demoHeaders"&gt;Accordion&lt;/h2&gt;
    &lt;div id="accordion"&gt;
        &lt;div&gt;
            &lt;h3&gt;&lt;a href="#"&gt;First&lt;/a&gt;&lt;/h3&gt;
            &lt;div&gt;Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.&lt;/div&gt;

            &lt;div id="tabs"&gt;
        &lt;ul&gt;
            &lt;li&gt;&lt;a href="#tabs-1"&gt;First&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#tabs-2"&gt;Second&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#tabs-3"&gt;Third&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;div id="tabs-1"&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&lt;/div&gt;
        &lt;div id="tabs-2"&gt;Phasellus mattis tincidunt nibh. Cras orci urna, blandit id, pretium vel, aliquet ornare, felis. Maecenas scelerisque sem non nisl. Fusce sed lorem in enim dictum bibendum.&lt;/div&gt;
        &lt;div id="tabs-3"&gt;Nam dui erat, auctor a, dignissim quis, sollicitudin eu, felis. Pellentesque nisi urna, interdum eget, sagittis et, consequat vestibulum, lacus. Mauris porttitor ullamcorper augue.&lt;/div&gt;
    &lt;/div&gt;

        &lt;/div&gt;
        &lt;div&gt;
            &lt;h3&gt;&lt;a href="#"&gt;Second&lt;/a&gt;&lt;/h3&gt;
            &lt;div&gt;Phasellus mattis tincidunt nibh.&lt;/div&gt;
            &lt;div id="tabs"&gt;
        &lt;ul&gt;
            &lt;li&gt;&lt;a href="#tabs-1"&gt;First&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#tabs-2"&gt;Second&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#tabs-3"&gt;Third&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;div id="tabs-1"&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&lt;/div&gt;
        &lt;div id="tabs-2"&gt;Phasellus mattis tincidunt nibh. Cras orci urna, blandit id, pretium vel, aliquet ornare, felis. Maecenas scelerisque sem non nisl. Fusce sed lorem in enim dictum bibendum.&lt;/div&gt;
        &lt;div id="tabs-3"&gt;Nam dui erat, auctor a, dignissim quis, sollicitudin eu, felis. Pellentesque nisi urna, interdum eget, sagittis et, consequat vestibulum, lacus. Mauris porttitor ullamcorper augue.&lt;/div&gt;
    &lt;/div&gt;
        &lt;/div&gt;
        &lt;div&gt;
            &lt;h3&gt;&lt;a href="#"&gt;Third&lt;/a&gt;&lt;/h3&gt;
            &lt;div&gt;Nam dui erat, auctor a, dignissim quis.&lt;/div&gt;
            &lt;div id="tabs"&gt;
        &lt;ul&gt;
            &lt;li&gt;&lt;a href="#tabs-1"&gt;First&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#tabs-2"&gt;Second&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#tabs-3"&gt;Third&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;div id="tabs-1"&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&lt;/div&gt;
        &lt;div id="tabs-2"&gt;Phasellus mattis tincidunt nibh. Cras orci urna, blandit id, pretium vel, aliquet ornare, felis. Maecenas scelerisque sem non nisl. Fusce sed lorem in enim dictum bibendum.&lt;/div&gt;
        &lt;div id="tabs-3"&gt;Nam dui erat, auctor a, dignissim quis, sollicitudin eu, felis. Pellentesque nisi urna, interdum eget, sagittis et, consequat vestibulum, lacus. Mauris porttitor ullamcorper augue.&lt;/div&gt;
    &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;




&lt;/body&gt;
</code></pre>

<p></p>
