I have a lot of table rows like:
<tr class="player" onclick="document.location = \'fight.php?fightplayer='.$rowselfight['name'].'\';">
All table rows have unique links. I now want to disable all the onclick
links after one of them has been clicked on. I tried editing a piece of code I found somewhere else:
$("tr").click(function() {
$(this).attr('onclick', '');
});
But it doesn't work, does anyone have an idea how to do this?