jellekralt / Responsive-Tabs

Responsive Tabs is a jQuery plugin that provides responsive tab functionality. The tabs transform to an accordion when it reaches a CSS breakpoint. You can use this plugin as a solution for displaying tabs elegantly on desktop, tablet and mobile.
http://jellekralt.github.io/Responsive-Tabs/
MIT License
531 stars 228 forks source link

startCollapsed not working for me #91

Closed JulieKuehl closed 8 years ago

JulieKuehl commented 8 years ago

I'm stumped as to why the startCollapsed option isn't working for me. I have this code in place:

            <script>
                jQuery(document).ready(function($) {
                    $('#tabs').responsiveTabs({
                        startCollapsed: 'accordion',
                        collapsible: 'accordion',
                        animation: 'slide',
                    });
                    $( "#tabs" ).tabs({
                        event: "mouseover",
                    });
//                  $('#tabs').responsiveTabs('deactivate', 0);
                });
            </script>

but in accordion mode, the first tab continues to be open upon loading. As you can see, I tried deactivating the first tab, but of course that also affects the desktop display. The code in question is in use over at http://aacrop.bcomhosting.com/

Any suggestions?

jellekralt commented 8 years ago

AFAIK the startCollapsed should work with the settings you included. I tried to check your website but I cant find any tabs, do you have an example for me?

JulieKuehl commented 8 years ago

Apologies. I should have let you know that the code had been removed from the site. Clients, you know. :-/

Thank you for your attention though.