[i4w_member_dir tagid=’110′ fields=’,FirstName,LastName,Email,Phone1,_Industry,Company,JobTitle,_ShirtSize,_DietaryRestrictions,_HotelAccommodations,Id’ header_labels=’,First Name,Last Name,Email,Phone,Industry,Company,Title,Shirt,Diet,Hotel’ pagelength=’500′]
/** * This script takes ID values from the table and replaces them with a link to view their profile. */ void function(){
let headers = document.querySelectorAll('.acceptGroup thead th');
let idHeader;
// Go through all th elements, find the one with 'id' in the name.
for (let x=0; x
// Get the td from the same column as id (found from above.) let idTd = row.querySelectorAll('td')[idHeader]; // Get the id value let id = idTd.innerText;
// Make a link let link = "View Profile";
// Replace the value with the constructed link idTd.innerHTML = link; });
}();
