setTimeout stack over flow..

Posted by user344862 on Stack Overflow See other posts from Stack Overflow or by user344862
Published on 2010-05-19T08:58:13Z Indexed on 2010/05/19 9:00 UTC
Read the original article Hit count: 360

Filed under:

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>

© Stack Overflow or respective owner

Related posts about jQuery