title: jquery get all input from specific form
body: <p>Is there any ways to populate all of the input from certain form?
  let say, some thing like this:</p>
  
  <pre><code>&lt;form id="unique00"&gt;
    &lt;input type="text" name="whatever" id="whatever" value="whatever" /&gt;
    &lt;div&gt;
      &lt;input type="checkbox" name="whatever" id="whatever" value="whatever" /&gt;
    &lt;/div&gt;
    &lt;table&gt;&lt;tr&gt;&lt;td&gt;
      &lt;input type="hidden" name="whatever" id="whatever" value="whatever" /&gt;
      &lt;input type="submit" value="qweqsac" /&gt;
    &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  &lt;/form&gt;
  &lt;form id="unique01"&gt;
    &lt;div&gt;
      &lt;input type="text" name="whatever" id="whatever" value="whatever" /&gt;
      &lt;input type="checkbox" name="whatever" id="whatever" value="whatever" /&gt;
    &lt;/div&gt;
    &lt;table&gt;&lt;tr&gt;&lt;td&gt;
      &lt;input type="hidden" name="whatever" id="whatever" value="whatever" /&gt;
    &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
    &lt;select&gt;blah...&lt;/select&gt;
    &lt;input type="submit" value="qweqsac" /&gt;
  &lt;/form&gt;
  etc forms... forms...
  </code></pre>
  
  <p>*note: each form might have a different amount of input and type and also different html structure</p>
  
  <p>so is there any way to populate the input from certain form id? eg if i click submit button from certain form id, then jquery will populate for me all of the input within those form id.
  currently what i'm doing is like this:</p>
  
  <pre><code>$("form").submit(function(){ return validateForm($(this)) });
  function validateForm(form){
  var retVal = true;
  var re;
  $.each(form.serializeArray(), function(i, field) {
    var input = $('input[name='+field.name+']');
    field.value = $.trim(field.value);
    switch(field.name){
      case "name" :
          and another cases...
        }
      })
   }
  </code></pre>
  
  <p>that was work,
  but in that case, i only get the field.name and field.value, and actually what i want is, i want a jquery object for each input element, so i can access their css, id, name, and even animate those input element</p>
  
  <p>is there any way for this?</p>
  
  <p>please let me know and thank you in advance!
  AnD</p>