I have some jQuery functions defined over some mouse events, for example something like
$(".divexpand").mouseenter(function(){
var alto = $(this).find('.checkalign').length*21+"px";
$(this).animate({height: alto}, 100)
$(this).css("z-index","100")
});
This works well in all my .divexpand
classes, the problem is when i have some of my content generated with ajax, something like
ajax.open("GET", "modules/activityedit-prop.php?id="+id);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
divContenido.innerHTML = ajax.responseText
}
}
In that case, .divexpand
classes in activityedit-prop.php
are ignoring the jQuery functions...
Can someone tell me why?
Thanks