send form values with jquery
<p>I am trying to send specfic form data to a php update script to modify the stored values in our database, how do i pass the hidden value and the checked value.</p>

<pre><code>&lt;?php do { ?&gt;
 &lt;form&gt;
&lt;p&gt; &lt;?php echo $row_tasks['dept']; ?&gt; / &lt;?php echo $row_tasks['descrip']; ?&gt; 
  &lt;input type="checkbox" name="check" id="status" value="&lt;?php echo $row_tasks['id']; ?   &gt;"&gt;
  &lt;input type="hidden"   id="tid" value="&lt;?php echo $row_tasks['id']; ?&gt;" /&gt;
  &lt;input type="submit" name="update" id="update" value="Submit" /&gt;
 &lt;/p&gt;
 &lt;/form&gt;
 &lt;?php } while ($row_tasks = mysql_fetch_assoc($tasks)); ?&gt;
 &lt;script&gt;
  function showValues() {
  var str = $("form").serialize();
  $("#results").text(str);
 }
$(":checkbox, :radio").change(showValues);
$("select").change(showValues);
showValues();
 &lt;/script&gt;
 &lt;script type="text/javascript"&gt;
 $('form').submit(function() {
  alert($(this).serialize());
return false;
 });
 &lt;/script&gt;
 &lt;p&gt;&lt;tt id="results"&gt;&lt;/tt&gt;&lt;/p
</code></pre>
