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);
});
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.