Ich habe eine Tabelle von Inhaltentd colspan funktioniert nicht, während jquery Show/hide() verwendet
<table>
<thead>
<tr>
<th>First Name </th>
<th>Last Name </th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>John</td>
<td>Deo</td>
<td><a class="personal-checking-more-link">More</a></td>
</tr>
<tr><td style="display:none" colspan="3">Description goes for 1st row</td></tr>
<tr class="odd">
<td>Jaden</td>
<td>Aidan</td>
<td><a class="personal-checking-more-link">More</a></td>
</tr>
<tr><td style="display:none" colspan="3">Description goes for 2nd row</td></tr>
</tbody>
Wenn ich auf Mehr dann erste Zeile Beschreibung klicken, wird angezeigt. Es zeigt perfekt, aber Colspan funktioniert nicht.
hier ist mein js Code
personalChecking = function() {
$('a.personal-checking-more-link').click(function() {
$(this).parent().parent().next().toggle('slow');
});
}
$(document).ready(personalChecking);
Vielen Dank im Voraus
@Sergio angezeigt werden - das Wie 4 Jahre alte Frage ein Duplikat einer Tag alten Frage? –