?
Solved

jquery accordion

Posted on 2009-12-18
2
Medium Priority
?
341 Views
Last Modified: 2012-05-08
Dear Friends,

i have downloaded the jquery accordion and its working fine,

but first time when page load the first accordion content is visible.

i just want when the page load first time all accordion have to collapse.

thanx
0
Comment
Question by:virafh
2 Comments
 
LVL 22

Accepted Solution

by:
kadaba earned 500 total points
ID: 26079341
try this way

<script type="text/javascript">
  $(document).ready(function(){
    $("#accordion").accordion({ active : false});
  });
  </script>

Open in new window

0
 

Author Closing Comment

by:virafh
ID: 31667699
Thank you :)
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question