Acordeon jQuery (no se cierran los demas items)


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

No se cierra los demas al momento de acer click


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().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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.