toggle(fn,fn) bug
<table>
<thead>
<tr>
<th>
姓名
</th>
<th>
性别
</th>
<th>
暂住地
</th>
</tr>
</thead>
<tbody>
<tr class="parent" id="row_01">
<td colspan="3">
前台设计组
</td>
</tr>
<tr class="child_row_01">
<td>
张三
</td>
<td>
男
</td>
<td>
浙江宁波
</td>
</tr>
<tr class="child_row_01">
<td>
李四
</td>
<td>
女
</td>
<td>
浙江杭州
</td>
</tr>
<tr class="parent" id="row_02">
<td colspan="3">
前台开发组
</td>
</tr>
<tr class="child_row_02">
<td>
王五
</td>
<td>
男
</td>
<td>
湖南长沙
</td>
</tr>
<tr class="child_row_02">
<td>
赵六
</td>
<td>
男
</td>
<td>
浙江温州
</td>
</tr>
<tr class="parent" id="row_03">
<td colspan="3">
后台开发组
</td>
</tr>
<tr class="child_row_03">
<td>
Rain
</td>
<td>
男
</td>
<td>
浙江杭州
</td>
</tr>
<tr class="child_row_03">
<td>
MaxMan
</td>
<td>
女
</td>
<td>
浙江杭州
</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
$(function() {
$("tr.parent").click(function() {
var trs = $(this).siblings(".child_" + this.id);
trs.toggle(function() { trs.hide("normal"); }, function() {
trs.show("normal");
});
});
});
</script>
{{{
}}}
Thanks for submitting a ticket to the jQuery Bug Tracker. In order for us to assist in evaluating this bug further we will need to do the following: 1) Post a summary of the information about this bug in more detail so we know exactly what may be failing and 2) Post a complete example of your code on [jsFiddle http://jsfiddle.net] that reproduces the issue. Thanks!