I am trying to get continuous data using jquery
- <script type="text/javascript" language="javascript">
- $(function() {
- var checkit = function(){
- $.get(
- "test2.php",
- { name: "Zara" },
- function(data) {
- $('#stage').html(data);
- }
- );
- }
-
- var nre = setInterval(checkit,1000);
- });
- </script>
- </head>
- <body>
- <div id="stage"></div>
-
- </body>
- </html>
I am trying to get continuous data from test2.php using jquery but to no avail. Can anyone please help ?