title: Pass value of user input in HTML to jQuery.Ajax
body: <p>I want to pass a value from a user input in a html to <code>jQuery.ajax</code>. Here's the code for my JS file:</p>
  
  <pre><code>jQuery(document).ready(function() {
      jQuery.ajax({           
          type: 'POST',
          url: 'myurl.aspx',
          data: {
              action: 'something', 
              count: txtCount
          }
      });
  });
  </code></pre>
  
  <p>and here's my html file:</p>
  
  <pre class="lang-html prettyprint-override"><code>Count: &lt;input type="text" id="txtCount" name="count" /&gt;
  &lt;input id="btnSubmit" type="Submit" value="Submit" /&gt;
  &lt;div&gt; output somewhere here&lt;/div&gt;
  </code></pre>
  
  <p>My javascript is working, I just removed some of the codes since i'm just pointing out on how to pass the values from the html to my ajax. I'm trying to develop a Chrome Packaged App.</p>