Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/12/2009, 07:35
Avatar de mayid
mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
Respuesta: Problema con Jquery al cargar en el mismo div

Antes de revisar mas a fondo, te propongo que incluyas return false al final del script. De no hacerlo, es muy posible que tu pagina se recargue:

Cita:
jQuery(document).ready(function(){
jQuery("#productos a").each(function(){
var href = jQuery(this).attr("href");
jQuery(this).attr({ href: "#"});
jQuery(this).click(function(){
jQuery("#contenido").load(href);
return false
});
});
});