Hi Jassim Rahma, You click the do it will send the result.
<head>
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
</head>
<body>
<script>
$(document).ready(function(){
$("a").click(function(){
$("table").each(function() {
var $this = $(this);
var newrows = [];
var i = 0;
$this.find("tr").each(function(){
$(this).find("td").each(function(){
i++;
if(newrows[i] === undefined) { newrows[i] = $(""); }
newrows[i].append($(this));
});
});
$this.find("tr").remove();
$.each(newrows, function(){
$this.append(this);
});
});
return false;
});
});
</script>
Name
Mike Watson
Title
Accountant
Department
Finance
</body>
</html>