title: Loop through input items onchange with jQuery
body: <p>When a select field is changed, I would like to loop through all of the input values in the form it belongs to using jQuery.  This doesn't work below, but I can't figure out exactly how to do this.</p>
  
  <pre><code>$("select.mod").change(function(){
      $(this).parent().get(0).$(":input").each(function(i){
      alert(this.name + " = " + i);
    });
  });
  </code></pre>