Home › Forums › Add-ons › Repeater Field › Using jQuery on Repeater Field Rows › Reply To: Using jQuery on Repeater Field Rows
What is triggering the jquery to run? What element have you attached your JS to.
When using js you need to use field keys
What you need to do is find the current row.
// element represents an field
var row = element.closest('acf-row');
one you have the row then you find a field in the row, I a assuming a field of type “input”
var field = row.find('[data-key="your field key"] .acf-input input');
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.