title: Get value onblur from input fields in a loop
body: <p>Below is how I made an alert showing the "dynamic" id using onblur.  I have a while loop with input fields so the id is pulling from a unique id in a database.</p>
  
  <p>How would I get the value too?  Normally I would just set a variable like usual but it's in a loop so I'm not understanding how.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function doUpdateEntries(clicked_id) {
          alert(clicked_id);
          // how do I get the value AND id?
      }
  &lt;/script&gt;
  
  while ($row = mysql_fetch_assoc($result)) {
      &lt;input onblur="doUpdateEntries(this.id);" id=".$row['entry_id']." name=".$row['entry_id']." type="text" value=".$row['reviews']."&gt;
  }
  </code></pre>