Posted By

oxxfreddyxxo on 06/01/12


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

BrockSamsom


Acordeon jQuery (no se cierran los demas items)


 / Published in: jQuery
 

No se cierra los demas al momento de acer click

  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().slideToggle("fast");
  8. if ($(this).parent().hasClass("current"))
  9. $(this).parent().removeClass("current");
  10. else
  11. $(this).parent().addClass("current");
  12. return false;
  13. });
  14. });
  15. </script>
  16. <!-- Fin Acordeon -->

Report this snippet  

You need to login to post a comment.