Acordeon jQuery (normal)


/ Published in: jQuery
Save to your folder(s)

Acordeon jQuery normal


Copy this code and paste it in your HTML
  1. <!-- Acordeon -->
  2. <script type="text/javascript">
  3. $(document).ready(function(){
  4. $("dd.uno").hide();
  5. $("#primero").slideToggle("slow");
  6. $("dt.uno a").click(function(){
  7. $(this).parent().next().siblings("dd.uno:visible").slideUp("slow");
  8. $(this).parent().next().slideToggle("fast");
  9. $(this).parent().siblings("dt.uno").addClass("current");
  10. $(this).parent().next().siblings("dt.uno").toggleClass("current");
  11. return false;
  12. });
  13. });
  14. </script>
  15. <!-- Fin Acordeon -->

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.