how i bury center list controlling jquery?


i have unequivocally enlarged 3 buttress table. i



<table>
<tr><td>column1</td><td>column2</td></tr>
<tr><td>column1</td><td>column2</td></tr>
<tr><td>start</td><td>hiding</td></tr>
<tr><td>column1</td><td>column2</td></tr>
<tr><td>column1</td><td>column2</td></tr>
<tr><td>column1</td><td>column2</td></tr>
<tr><td>end</td><td>hiding</td></tr>
<tr><td>column1</td><td>column2</td></tr>
<tr><td>column1</td><td>column2</td></tr>
</table>


this outcome i'm perplexing obtain controlling jquery.



column1  column2
column1 column2
...show full table...
column1 column2
column1 column2


i jquery's show/hide underline minimize list nonetheless still arrangement biased tip bottom rows. center rows should reinstate calm "show full table" clicked enhance arrangement full list start finish.



what best proceed jquery?



btw i've already attempted adding category "table_middle" rows nonetheless doesn't bury totally space indifferent still there i don't have calm give user proceed enhance list fully.



[edit] total operative instance html fervent parand's posted answer



the instance next finish operative example, don't even need download jquery. only brew vacant html file.



it degrades simply arrangement wholly full list javascript incited off. javascript following hides center list rows adds show/hide links.



<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<title>example show/hide center rows list controlling jquery</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#hiddenrowsnotice").html("<tr><td colspan='2'> <a href='#'>>> rows dark <<</a></td></tr>");
$("#showhide").html("<tr><td colspan='2'><a href='#'>show/hide center rows</a></td></tr>");
$("#hiddenrows").hide();

$('#showhide,#hiddenrowsnotice').click( function() {
$('#hiddenrows').toggle();
$('#hiddenrowsnotice').toggle();
});
});
</script>
</head>
<body>
<table>
<tbody id="showhide"></tbody>
<tr><th>month name</th><th>month</th></tr>
<tbody>
<tr><td>jan</td><td>1</td></tr>
</tbody>
<tbody id="hiddenrowsnotice"></tbody>
<tbody id="hiddenrows">
<tr><td>feb</td><td>2</td></tr>
<tr><td>mar</td><td>3</td></tr>
<tr><td>apr</td><td>4</td></tr>
</tbody>
<tbody>
<tr><td>may</td><td>5</td></tr>
</tbody>
</table>
</body>
</html>


[edit] couple operative example.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?