title: Iterating through all Textareas with Javascript (jQuery)
body: <p>I would like to perform something with all my text areas, however selecting all of them with <code>$("textarea")</code> wont do. Here's what I am trying to do in <strong>Pseudo code</strong>:</p>
  
  <pre><code>for each textarea do
    alert(textarea.val)
  </code></pre>
  
  <p>In my case, I need to do a Word replacement in all of my textareas, so I thought doing it with iteration would be a lot cleaner, however I cant figure out how to do it.</p>
  
  <p>Here is what I currently do, which is very tedious:</p>
  
  <pre><code>var txtcode = $("#txt_banner1").text().replace("AFFURL",producturl);
  $("#txt_banner1").text(txtcode);
  
  var txtcode = $("#txt_banner2").text().replace("AFFURL",producturl);
  $("#txt_banner2").text(txtcode);
  </code></pre>
  
  <p>... and on and on....</p>
  
  <p>Thanks!</p>