title: jquery iterating through newly created elements
body: <p>I am trying to add new rows in my table, and save them into DB.</p>
  
  <p>First, I use .append() to append rows on the table:</p>
  
  <pre><code>$("#tablename").append("&lt;tr id='newRow'&gt;&lt;td&gt;newly added row&lt;/td&gt;&lt;/tr&gt;");
  </code></pre>
  
  <p>The appending function works fine. My page displays the correct result.</p>
  
  <p>However, I am unable to select them with</p>
  
  <pre><code>$("#newRow").each(function () { alert "it never reaches here!"; });
  </code></pre>
  
  <p>I am guessing it is because the elements are added after the DOM is loaded.
  Can anyone please tell me how I can iterate through all my newly added elements?</p>
  
  <p>Thank you.</p>