setTimeout stack over flow..
- by user344862
Untitled 1
$(document).ready(function(){
counterFN();
var theCounter = 1;
function counterFN()
{
$(".searchInput").val(theCounter);
theCounter++;
setTimeout(counterFN(),1000);
}
});
</script>
</head>
<body>
<input type="text" class="searchInput" />
</body>