jquery - I need to wrap up table row into div -
i need wrap table row div, do
$('table tr').each(function(){ $(this).insertbefore('<div>'); $(this).insertafter('</div>'); }) but seems doesn't work update fidle http://jsfiddle.net/esdr2/1/
if trying break them separate section row, maybe try tbody approach.
<table class="table"> <tbody class="first-part"> <tr> <td>first</td> </tr> </tbody> <tbody class="second-part" style="display:none"> <tr> <td>second</td> </tr> </tbody> </table> edit after seeing fade out can try javascript..
var firstpart = $('tbody.first-part'); var secondpart = $('tbody.second-part'); $('#somebutton').click(function () { firstpart.fadeout("fast"); secondpart.fadein("slow"); }); here jsfiddle fadeout working. http://jsfiddle.net/u3fnl/1/
Comments
Post a Comment