Retrouver ID dans tableau?
Bonjour,
Je souhaite récupérer l'ID du N° de licence pour créer un lien dynamique
Code:
<a onclick='eval( window.location.href="http://www.badnuke.com/player.aspx?licence=" + $("#NLicence").prev()); return false;' href="#" onmousedown="q_stopPropagation( event )">Lien BadNuke </a>
Le lien est contenu dans un tableau.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
<div style="text-align: center; font-size: 18px; font-style: italic; font-weight: bold;">NOM Prénom (Cap.)</div>
<br>
<table border="0">
<tbody>
<tr>
<td width="110">
<span style="text-decoration: underline;">N° de licence:</span>
</td>
<td id="NLicence">
203075
</td>
</tr>
<tr>
<td>
<span style="text-decoration: underline;">Classement:</span>
</td>
<td>
<a onclick='eval( window.location.href="http://www.badnuke.com/player.aspx?licence=" + $("#NLicence").prev()); return false;' href="#" onmousedown="q_stopPropagation( event )">Lien BadNuke </a>
</td>
</tr>
<tr>
<td>
<span style="text-decoration: underline;">Catégorie:</span></td><td>--</td></tr><tr><td><span style="text-decoration: underline;">Gaucher / Droitier:</span></td><td>--
</td>
</tr>
<tr>
<td>
<span style="text-decoration: underline;">Discipline:</span>
</td>
<td>
--
</td>
</tr>
</tbody>
</table> |
Comme faire récupérer le N° de licence? JQuery est disponible.
J'ai essayé pas mal de code, mais ne connaissant pas trop la syntaxe JS et JQuery, j'ai certainement du faire une erreur sur un code bon à l'origine!
Merci pour le coup de main
Gdal