title: jQuery post parameter to load
body: <p>How do I pass the values of txtname and tel as variables to the .load???</p>
  
  <pre><code>$(document).ready(function(){
      $("#add").click(function(){
          $("#result").load("add.php", {name: #txtname});
      });
  });
  </code></pre>
  
  <p>The html:</p>
  
  <pre><code>&lt;p&gt;Name:&lt;input type="text" name="name" value="" id="txtname" /&gt;&lt;/p&gt;
  &lt;p&gt;Telephone:&lt;input type="text" name="tel" id="tel" value="" /&gt;&lt;/p&gt;
  &lt;input type="submit" value="Submit" id="add" /&gt;
  </code></pre>