Side navigation
#7909 closed bug (duplicate)
Opened January 06, 2011 12:38PM UTC
Closed January 07, 2011 04:06AM UTC
Last modified January 07, 2011 04:07AM UTC
toggle(fn,fn) bug
Reported by: | shuibiwoku@126.com | Owned by: | shuibiwoku@126.com |
---|---|---|---|
Priority: | undecided | Milestone: | 1.next |
Component: | unfiled | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
<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>
{{{
Attachments (0)
Change History (3)
Changed January 06, 2011 02:51PM UTC by comment:1
description: | \ {{{ \ <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> \ {{{ \ \ → {{{ \ <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> \ {{{ \ \ |
---|---|
owner: | → shuibiwoku@126.com |
status: | new → pending |
Changed January 07, 2011 04:06AM UTC by comment:2
resolution: | → duplicate |
---|---|
status: | pending → closed |
Original submitter has posted a new ticket rather than updating this one. Closing as a dupe.
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!