$(function(){
var i = 0;
var myVar = setInterval(function(){
$('#numero').html(i);
i++;
}, 5000);
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="numero"></div>
<button id="boton">pulsame</button>
What could I do so that by pressing the "pulsame" button the div with id "number" would pass to the next number without needing to wait for 5 seconds and then continue every 5 seconds?