Bug Tracker

Ticket #5157: tbody.html

File tbody.html, 718 bytes (added by candlerb, 10 years ago)

HTML page demonstrating problem

Line 
1<html>
2<head>
3<title>Test animate of tbody</title>
4<script src="jquery-1.3.2.js"></script>
5<script type="text/javascript">
6jQuery( function($) {
7  var anim_speed = 250;
8  var target = $('#middle');
9  $('#hm').click( function() {
10    target.slideUp(anim_speed);
11    return false;
12  });
13  $('#sm').click( function() {
14    target.slideDown(anim_speed);
15    return false;
16  });
17 
18});
19</script>
20</head>
21<body>
22<ul>
23  <li><a href="#" id="hm">Hide middle</a></li>
24  <li><a href="#" id="sm">Show middle</a></li>
25</ul>
26<table>
27<tbody><tr><td>First row</td></tr></tbody>
28<tbody id="middle" style="display: table-row-group"><tr><td>Middle row</td></tr></tbody>
29<tbody><tr><td>Last row</td></tr></tbody>
30</table>
31</body>
32</html>