document.addEventListener("DOMContentLoaded", function () { $('#iw-lop-table2 a').each(function(){ const url = $(this).attr('href'); const urlWithEmail = url + '?userEmail=' + window.logged_in_user.softr_user_email; $(this).attr('href', urlWithEmail); }); });