title: Inserting HTML table row with Datepicker doesn't work
body: <p>I am using the Datepicker plugin to insert date values.
  I also use a script that allows users to insert cells in an HTML table.</p>
  
  <p>When the user acess the "edit.php" page, they have a table with several <code>&lt;input type="text"&gt;</code> with information fetched from the database. They can edit it, or insert more data by clicking the "add row" button.</p>
  
  <p>So, if the user wants another row in the table to insert more data into the database, the datepicker plugin doesn't work on the new row.</p>
  
  <p>Here is my datepicker plugin code:</p>
  
  <pre><code>$(function() {
   $( ".datepicker" ).datepicker({ dateFormat: "dd-mm-yy" });
  }); 
  </code></pre>
  
  <p>And here is the code that allows me to insert more cell rows:</p>
  
  <pre><code>function addRow()
  {
  //add a row to the rows collection and get a reference to the newly added row
  var newRow = document.all("tabela1").insertRow(-1);
  
  //add 3 cells (&lt;td&gt;) to the new row and set the innerHTML to contain text boxes
  
  var oCell = newRow.insertCell();
  oCell.innerHTML = "&lt;tr&gt;&lt;td&gt;&lt;input type='text' name='ippdesc[]'&gt;&lt;/td&gt;";
  
  oCell = newRow.insertCell();
  oCell.innerHTML = "&lt;td&gt;&lt;input type='text' name='ippemp[]'&gt;&lt;/td&gt;";
  
  oCell = newRow.insertCell();
  oCell.innerHTML = "&lt;td&gt;&lt;input type='text' class='datepicker' name='ippdata[]' value='05-05-2005'&gt;&lt;/td&gt;";
  oCell = newRow.insertCell();
  oCell.innerHTML = "&lt;td&gt;&lt;input type='checkbox' name='chk[]'&gt;&lt;/td&gt;&lt;/tr&gt;";
  
  document.getElementById("addr").onclick = doFunction;
  }
  </code></pre>
  
  <p>Thanks !</p>