Hello,
this jquery works without any problems, but i want to add a condition that it only toggles the <tbody> when i click on the <td> with the class="check", not with the whole <thead>.
thank you for your help!
<script>
$(document).ready(function(){
$("thead").click(function(){
$(this).next().toggle();
});
});
</script>
</head>
<body>
<table border=1>
<thead>
<tr>
<td>Name</td>
<td class="check">Vorname</td>
<td>Alter</td>
</tr>
</thead>
<tbody style='display: none;'>
<tr>
<td>Schmidt</td>
<td>Klaus</td>
<td>48</td>
</tr>
<tr>
<td>Meier</td>
<td>Bernd</td>
<td>78</td>
</tr>
</tbody>