var tit=$('.details .te_c').html() $('.tj li').each(function(){ tit= tit.replace(/\s+/g, ""); var ch_tit=$(this).find('.txt').children('a').text() ch_tit= ch_tit.replace(/\s+/g, ""); //console.log(tit+','+ch_tit) if(tit==ch_tit){ $(this).remove() } }) setTimeout(function() { var tj_length=$('.tj li').length for(var i=0;i