I am having the code below in page;
$(document).ready(function() {
window.setInterval(function(){
$("#customers, td, #span").each(function(){
if($(this).children("span").attr("alt")!=null)
var dt=new Date($(this).children("span").attr("alt").split(",")[3]).getTime();
if(dt>$.now()-10*1000){ //am i right here??
console.log("animating");
$(this).parent().fadeOut("slow");
$(this).parent().fadeIn("slow");
}
});
},1000);
});
this code works fine on chrome, but does not work on firefox;
firefox saying TypeError: $(...).each is not a function
.
Can any one help me??
it looks like
new Date()
is not working in firefox.the date was;
i updated it to;