Support

Account

Home Forums Add-ons Repeater Field Using jQuery on Repeater Field Rows Reply To: Using jQuery on Repeater Field Rows

  • Thanks for the reply. Got it working now 🙂

    jQuery(".acf-repeater .acf-row").each(function(i, element) {
          var row = $(element);
          var orderrow_quantity = row.find(".orderrow-quantity input").val();
          var orderrow_price_before_tax = row.find(".orderrow-price-before-vat input").val();
          var orderrow_total_before_tax = orderrow_quantity * orderrow_price_before_tax;
          var orderrow_total_after_tax = orderrow_total_before_tax * vat_percentage;
          row.find(".orderrow-total-before-vat input").val(orderrow_total_before_tax);
          row.find(".orderrow-total-after-vat input").val(orderrow_total_after_tax);
     });