Help the world stop coronavirus! Stay home!

Prev Next

HTML / HTML Interview questions

How do I invert/transpose the rows and columns of a HTML table?

Save the below content into a file with .html extension and open it in browser.

<script src=""></script>


 $( document ).ready(function() {
$("#tableID").each(function() {
        var $this = $(this);
        var newTransposedRow = [];
            var i = 0;
                if(newTransposedRow[i] === undefined) { newTransposedRow[i] = $("<tr></tr>"); }
        $.each(newTransposedRow, function(){
<table id="tableID">



❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...


Comments & Discussions