Elepsis Eclipse
Гений
(64081)
4 года назад
each() ожидает функцию-аргумент.
$("#txt").html(txt);
txt += e.key
$(".name").each(function () {
if ( $(this).html() == txt) {
miavor++
$('#miavor').html(miavor)
$("#txt").html()
txt = ""
$(this).remove()
console.log("true")
return
}
});
txt += e.key
$(".name").each({
if($(this).html() == txt){
miavor++
$('#miavor').html(miavor)
$("#txt").html()
txt=""
$(this).remove()
console.log("true")
return
}
})
ошыбка
Uncaught SyntaxError: Unexpected token '('