problem description: enter "barcode" in the input box and click OK. If the barcode entered corresponds to the barcode in the form, the number of reviews in the tr will be increased by one. Why is the countPP I wrote correct the first time? if I enter the second "barcode" click OK, the number of checks will inherit the previous barcode superposition? Ask my brother for advice
var count = 0;
/ / enter
$(".conversation _ review") .click (function () {
$("tbody tr td:nth-child(3)").each(function(index,val){
if($(this).html()==$(".nav-input").val()){
console.log("-----------------------------");
countPP;
$(this).parent().children().eq(-2)[0].innerHTML= count;
}
});
});