I am working on this jQuery which will eventually populate fields from the Parent field (Features) to the Children fields (Description, address, etc.) within a List Field. I have been able to get the fields to populate in a certain column, but when I change the first row parent, it changes the children field in all the rows.
You can see an idea of what I am working on here: https://goadrifttravel.com/00-test/
Also this is the code I have been working with:
jQuery(document).ready(function($) { // START Place Jquery in here $( "select" ).change(function() { $(this).parent().click(function() { var str = ""; $( "td.gfield_list_1_cell4 option:selected" ).each(function() { str += $( this ).text() + " "; }); $( "td.gfield_list_1_cell5 input" ).val( str ); }) .trigger( "change" ); }); });
Any thoughts on how to target one jQuery Row at a time within the List Field? I've been trying the each() function, but so far no luck.