title: ajax post script
body: <p>I just fiddled following script.
  It's not working.</p>
  
  <pre><code>&lt;SCRIPT&gt; 
  
  function kin() {
      var kobj = document.getElementById("k"); // input Object 
      var q = kobj.value; 
  
         $.ajax({
        type: "POST",
        URL: "zips.php",
        data:q,
        success: function(res) {
              $("#result").append(res);
              console.log(res);
        }
     });
  
  }
  
  &lt;/SCRIPT&gt; 
  
   &lt;INPUT type="text" autocomplete="off" value="" id="k"&gt;&lt;input type="submit" value="search" onClick="kin()" data-role="button"&gt;      
  &lt;DIV id="result"&gt;&lt;/DIV&gt;
  </code></pre>