title: jquery getting removed dynamic row value
body: <p>Using below code I am adding all values of input filed.
  but when I remove dynamic row this piece of code still getting 
  the old removed row value.
  How I can fix it ? 
  I don't need remove row value.</p>
  
  <p>MyCode</p>
  
  <pre><code>$(document).on('blur',"input[name$='[credit]']", function () {
      var totalCredit = 0;
      $("input[name$='[credit]']").each(function() 
       {
          if ($(this).attr('name') &amp;&amp; $(this).attr('name').match(/items\[\d+\]\[credit\]/)) 
          {
              totalCredit += $(this).val() ? parseInt($(this).val()) : 0; // get exchange_rate
          }
  
           console.log(" Current value: " +    $(this).val() );
  
       });// end each.
  
       console.log(" Total: " +    totalCredit );
  
  
       // assign total to div id.
       $("#totalCredit").html("Credit:" + delimitNumbers(totalCredit) );
  });
  </code></pre>