So the last line of code selects all the "a" elements on the page that are within "transactiontable". I need it to only select the "a" element that lies with the current "tr" element as each URL for each "tr" element is unique.
Currently all the URLs have the same id value as from the last iteration of the for each function.
Any help would be greatly appreciated. Thanks
Ignore "[[ @{'~' + ${flowExecutionUrl}(_eventId='existingVehicle')} ]]" as that is Thymeleaf.
$(document).ready(function() {
$('#items-list tr').each(function() {
var id = $(this).attr('id').split('-')[1];
var url3 = "\u0026id=" + id;
var url = [[ @{'~' + ${flowExecutionUrl}(_eventId='existingVehicle')} ]] + url3;
$('.transactiontable a').attr('href', url);
});
});