title: Ajax variable not passing to php
body: <p>I am looking to pass the value of cityField in ajax to $_POST['cityField']. Everything looks in order but the variable is not passing to php on nextpage.php</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
  $('#city').blur(function() {
      var cityField=$('#city').val();
      $.ajax({
          type:"post",
          url:"nextpage.php",
          data:{'cityField':cityField },
          dataType:"html",
          success:function(data) {
              alert("You typed:"+cityField);
          }
      });
  });
   &lt;/script&gt;  
  </code></pre>