Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/02/2014, 10:26
dunga007
 
Fecha de Ingreso: febrero-2009
Mensajes: 151
Antigüedad: 15 años, 3 meses
Puntos: 1
Respuesta: stopPropagation()

Hola EmpireFX! mil gracias por tu ayuda, mira esta es mi funcion:

Código Javascript:
Ver original
  1. $('.notificacion').on("click", function(event){
  2.  
  3.                     $(this).remove();
  4.  
  5.                     if ($('.notificacion').length > 0)
  6.                         {
  7.                             event.stopPropagation();                            
  8.                         };                
  9.                        
  10.                     });

Pienso que lo estoy utilizando bien ya que no tiene mayor ciencia jejeje. Alguien se le ocurre alguna otra solucion?. Gracias a todos!!!



Cita:
Iniciado por EmpireFX Ver Mensaje
Quizas no lo estas utilizando apropiadamente(nota el argumento event)..

http://api.jquery.com/event.stoppropagation/