bonjour,
je suis en phase d'apprentissage de jquery.soyez indulgent
voila j'ai fait un tableau de trois colonne et deux lignes
----------------------------
| nom | prenom|
------------------------- --
| jeean | dejan
|
total clik |------------------
| toma | lolo
-----------------------------
c'est mon tableau,j'aimerais quand je clik sur clik jeean dejan toma et lolo disparaisssent
sauf que mon code ne marche pas et je comprend pas pourquoi???
voici mon code
merci pour votre help
Modifié par timo (15 Oct 2010 - 23:42)
je suis en phase d'apprentissage de jquery.soyez indulgent

voila j'ai fait un tableau de trois colonne et deux lignes
----------------------------
| nom | prenom|
------------------------- --
| jeean | dejan
|
total clik |------------------
| toma | lolo
-----------------------------
c'est mon tableau,j'aimerais quand je clik sur clik jeean dejan toma et lolo disparaisssent
sauf que mon code ne marche pas et je comprend pas pourquoi???
voici mon code
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
$("#declencheur").click(function(){
$("#mondiv").toggle("slow");
});
}); </script>
</head>
<body>
</span>
<table border=1>
<tr>
<th></th>
<th>nom</th>
<th>prenom</th>
</tr>
<tr>
<td rowspan="2">total <a href="#" id="declencher">clik</a></td>
<div id="mondiv">
<td>heloo</td>
<td>hooho</td>
</tr>
<tr>
<td>kjkh</td>
<td>jkhjg</td>
</tr>
</div>
</table>
</body>
</html>
merci pour votre help
Modifié par timo (15 Oct 2010 - 23:42)