-1

what else in this code

   var b1 = 2;
    $(".column-1").each(function(i, val) {
      if ($(this).text() == "2019") {
        $(this).siblings('.column-3').each(function(){
         if($(this).text() !==''){
           var r +=parseInt($(this).text());
           alert(r);
          }
        
      });
      }
      });

how to fix this error in this code

yuvaraj
  • 45
  • 7

1 Answers1

0

var b1 = 0;
$(".column-1").each(function(i, val) {
  if ($(this).text() == "2019") {
    var r=0;
    $(this).siblings('.column-3').each(function() {
               if($(this).text() !==''){
           r +=parseInt($(this).text());
           alert(r);
          }
    });
  }
  });
  

i solved this error

yuvaraj
  • 45
  • 7