here document.write function is not working can anybody help me to fix this plz......
<!doctype html>
<html lang="en">
<head>
</head>
<body>
<table>
<tbody>
</tbody>
<script>
$(document).ready(function(){
var arr = [ [2,3,4,5,6], [3,2,3,4,5] ];
$.each( arr, function(index,value) {
document.write("<tr>");
$.each(value, function(key,value){
$( "tbody").append("<td>" + value + "</td>");
});
document.write("</tr>");
});
});
</script>
</table>
</body>
</html>