Ver Mensaje Individual
  #7 (permalink)  
Antiguo 14/03/2014, 10:16
Avatar de NaRanJiTo78
NaRanJiTo78
 
Fecha de Ingreso: noviembre-2007
Ubicación: In the BeaCh
Mensajes: 874
Antigüedad: 16 años, 6 meses
Puntos: 10
Respuesta: Función "click" en vez de hover

Éste sería el código completo?

Código:
 $(document).ready(function(){
$(".selector").click(function(){
    var id = $(this).attr("id");
    $("."+id).show();
});
var id = $(this).attr("id");
    if ($("."+id).css("display") == "none")
        $("."+id).show();
    else
        $("."+id).hide();

});
Esque así no me funciona...algo habré puesto mal