I have a table in my form with 2 columns which is populated from lookup rules. I am just trying to read the values of each column in the table using JavaScript but it doesn't execute any code inside the foreach loop. I am not sure what is wrong with my JavaScript.
$('.cf-table-block').on('change lookup', 'input', tablevalues);
function tablevalues() {
var name = $(this).find('.name input').val();
var link = $(this).find('.link input').val();
});
}