Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/07/2014, 13:00
Avatar de newboy_master
newboy_master
 
Fecha de Ingreso: enero-2008
Ubicación: Granada
Mensajes: 882
Antigüedad: 16 años, 4 meses
Puntos: 46
Respuesta: Accordion jquery - Apartados independientes

Aquí tienes: http://jsfiddle.net/MCTWY/2/

Solo he modificado la parte de jQuery añadiendo una condición:

Código Javascript:
Ver original
  1. var currCont = $('.acc-content').eq(currIndex);
  2.       if(currCont.css("height")=="0px")
  3.           $('.acc-content').eq(currIndex).stop().animate({ height: targetHeight }, animTime);
  4.       else
  5.           $('.acc-content').eq(currIndex).stop().animate({ height: 0 }, animTime);

Salu2.
__________________
@jslirola - Programador Web Freelance.