title: PrototypeJS get value of each input
body: <p>I write following function to read inputs from my <code>fieldset</code>, it works but I have no idea how to read <strong>value</strong> of selected this way <code>input</code></p>
  
  <pre><code>$$('#split_edit div label input').each(
    function(item) {
      console.log(item);
    }
  );
  </code></pre>
  
  <p>This is my html structure, I can't read input value using its ID because they are dynamically generated.</p>
  
  <pre><code>&lt;fieldset id="split_edit"&gt;              
    &lt;div class="top-10"&gt;
      &lt;label&gt;
        &lt;span class="span-3 left"&gt;Item 1 (%)&lt;/span&gt;
        &lt;input type="text" class="text" name="packet_1" value="0" id="packet_3"&gt;
      &lt;/label&gt;
    &lt;/div&gt;
    &lt;div class="top-10"&gt;
      &lt;label&gt;
        &lt;span class="span-3 left"&gt;Item 1 (%)&lt;/span&gt;
        &lt;input type="text" class="text" name="packet_2" value="0" id="packet_7"&gt;
      &lt;/label&gt;
    &lt;/div&gt;
  &lt;/fieldset&gt;
  </code></pre>
  
  <p>How to select value from input selected by <code>each</code> function in PrototypeJS? </p>
  
  <p>I'm sorry for obvious question but I have started using PrototypeJS several hours ago.</p>