title: How do you repeatedly make an ajax request with jquery?
body: <p>I have the following ajax request that runs when the page is loaded</p>
  
  <pre><code>var city_id = $(".feed-selected-city").attr('id');
      $("#cityfeed").html("&lt;div class='feed-loading'&gt;The feed is loading ...&lt;/div&gt;");
      var ajaxOpts = {
              type: "get",
              url: "ajax_getcityfeed.php",
              dataType: 'json',
              data: "&amp;city=" + city_id,
              success: function(data) {
                  $('#cityfeed').html(data.data);
              }
          };
  
      $.ajax(ajaxOpts);
  </code></pre>
  
  <p>How can I run this piece of code every 10 seconds after that?</p>