<thead> <tr> <th>Data:</th> <th>Temperatura<br> mínima:</th> <th>Temperatura<br> média:</th> <th>Temperatura<br> máxima:</th> <th>Umidade<br> mínima:</th> <th>Umidade<br> média:</th> <th>Umidade<br> máxima:</th> <th>Precipitação<br> acumulada diária:</th> </tr> </thead> <tbody> <?php if (isset($monitor)) { $monitor->createTable(); } ?> </tbody> </table> </div> </div> </div> <script src="bower_components/jquery/dist/jquery.min.js" type="text/javascript" charset="utf-8" async defer></script> <link rel="stylesheet" href="bower_components/bootstrap/dist/js/bootstrap.min.js"> <script type="text/javascript"> var btn = document.querySelector(".btn"); btn.addEventListener('click', function(e) { document.querySelector("table tbody").innerHTML = ''; document.getElementById("data").submit();