HOW DO I KEEP JQUERY ACCORDION COLLAPSED BY DEFAULT?

Ankit Singh

Total Post:341

Points:2389
Posted by  Ankit Singh
JQuery 
 1183  View(s)
Ratings:
Rate this:
i am working with jquery ui accordion its working fine but i want to Collapsed by default all tab

here is my jQuery code

<script>
        $(document).ready(function () {
            $("#accordion").accordion({
                collapsible: true
            });
        });
    </script>


  1. Kamlakar Singh

    Post:194

    Points:1396
    Re: How do i keep jQuery Accordion Collapsed by default?

    $(document).ready(function () {
                $("#accordion").accordion({
                    collapsible: true,
    active: false
                });
            });

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!