Hi @Omar Tabasi ,
In list view applying "group by", the html of the link is hidden and not loaded. As a workaround, you could change your js code to the below in the group by view:
$(document).ready(function () {
setInterval(function(){$(".ms-listviewtable tr td a").attr("target", "_blank");},1000);
});
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.