with queryparam 't' to t=tabname
$refs.levels?.querySelectorAll('a').forEach(link => {
const url = new URL(link.href);
if(url.searchParams.get('t')){
url.searchParams.set('t', tabname);
}
link.href = url.toString();
});
"
>
Player stats
Played matches
Show All| Team | M | W | D | L | Matches | Sets | Balls | P | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 10 | 9 | 0 | 1 | 38-12 | 124-63 | 1856-1537 | 18 | |
| 2 | 10 | 7 | 0 | 3 | 34-16 | 119-59 | 1753-1458 | 14 | |
| 3 | 10 | 4 | 0 | 6 | 23-27 | 87-97 | 1671-1703 | 8 | |
| 4 | 10 | 4 | 0 | 6 | 22-28 | 80-98 | 1572-1606 | 8 | |
| 5 | 10 | 4 | 0 | 6 | 19-31 | 67-106 | 1426-1698 | 8 | |
| 6 | 10 | 2 | 0 | 8 | 14-36 | 63-117 | 1493-1769 | 4 | |