JIT
Toggle active class on table row button
make a button that make a toggle to add or remove active class from <tr class="newranknamenew active"> <table> <tr class="newranknamenew active"> <td> <span class="icon"><i class="fa-solid fa-circle-xmark"></i></span> </td> </tr> <tr class="newranknameselect active"> <td> <span class="icon"><i class="fa-solid fa-keyboard"></i></span> </td> </tr> </table>

html

Updated files
v1