title: jquery: get values of all children of a div
body: <p>I am trying to use jquery to get the values of all children element of a div.</p>
  
  <pre><code>&lt;div class='parent'&gt;
      &lt;input type='text' value='1' class='child' /&gt;
      &lt;input type='text' value='2' class='child' /&gt;
      &lt;input type='text' value='3' class='child' /&gt;
      &lt;input type='text' value='4' class='child' /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The child inputs are generated with php from db. Their number varies.</p>
  
  <p>I am trying to get something like:</p>
  
  <pre><code>variable = (child1_value + child2_value + child3_value + child4_value + ... + "childX_value");
  </code></pre>
  
  <p>how can I make this work for whatever number of children?</p>