title: Execute an Ajax request every second
body: <p>I have an ajax call being made to a php file. I am receiving results. Now I am investigating if it is possible to have the ajax request automatically perform every 1 second. I am posting the results into input field called <code>hidden</code>. How can I execute the ajax call every three seconds without having to call the function?   </p>
  
  <pre><code>    $.ajax({
              type: 'POST',
              url: 'increment.php',
              data: $(this).serialize(),
              dataType: 'json',
              success: function (data) {
                      $('#hidden').val(data);// first set the value     
  
              }
      });
  </code></pre>