以下のページにコードがあります。
$(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);
});
このコードは chrome では問題なく動作しますが、firefox では動作しません。firefox と言ってTypeError: $(...).each is not a function
います。
誰でも私を助けることができますか??