Jqueryを使って
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
このような表を作ろうとしていますが、1-16までの数字が表示されません。なぜでしょうか??
<html> <head> <meta charset="utf8"> <title>ルーレット</title> <style type="text/css"> table,td{ border:solid 1px black; font-size:70px; text-align:center; } #box{ margin:auto; position:absolute; top:0px; bottom:0px; left:0px; right:0px; } #start,#tomeru,#reset{ width:90px; height:30px; margin-left:5px; margin-top:10px; } </style> <script src="https://code.jquery.com/jquery-3.1.1.slim.js" integrity="sha256-5i/mQ300M779N2OVDrl16lbohwXNUdzL/R2aVUXyXWA=" crossorigin="anonymous"></script> </head> <body> <table id="table"></table> <script> var num= for(var j=1; j<=16; j++); $(function(){ for(var i=1; i<=4; i++){ $('#table').append('<tr></tr>'); for(var k=1; k<=4; k++){ $('#table').append('<td>'+ num +'</td>'); } } }); </script> </body> </html>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。