datepicker and dynamic table not using jQuery function
<p>I have read many threads here about my problem, but I haven't found a solution, may be because I'm not the king of JQuery ...</p>

<p>This is very a simple example :</p>

<p><a href="http://dianamahe.free.fr/test_tableaucalendrier2en.php" rel="nofollow">example</a></p>

<p>When I try to add a new line, datepicker doesn't work. I don't know what to do. 
I use this function to add a new line in my table. (In reality, I have a html page with many table and for each of them i use datepicker)</p>

<pre><code>    var champ_date_arrivee = document.createElement('input');
champ_date_arrivee.setAttribute('type','text');
champ_date_arrivee.setAttribute('size','10');
champ_date_arrivee.setAttribute('name','date_t');
champ_date_arrivee.setAttribute('value','');
champ_date_arrivee.setAttribute('id','date_t');
champ_date_arrivee.className='champ_date_input_tableau';
newCell1.appendChild(champ_date_arrivee);
</code></pre>

<p>and this code for the datepicker :</p>

<pre><code>$(document).ready(function(){

 $.datepicker.setDefaults($.datepicker.regional['fr']);
 $('.champ_date_input_tableau').datepicker({ /* action sur class date */

    dateFormat: 'dd-mm-yy',
    changeMonth: true,
    changeYear: true,
    yearRange: "c-70:c+70",
    clickInput:true,
 });

});
</code></pre>

<p>As you can see, I use the class name champ_date_input_tableau, because I don't know how to do it in an other way.</p>

<p>I've tried this :</p>

<pre><code>    var champ_date_arrivee = document.createElement('input');
champ_date_arrivee.setAttribute('type','text');
champ_date_arrivee.setAttribute('size','10');
champ_date_arrivee.setAttribute('name','date_t');
champ_date_arrivee.setAttribute('value','');
champ_date_arrivee.setAttribute('id','date_t');
champ_date_arrivee.className='champ_date_input_tableau';
    $(champ_date_arrivee).datepicker({
    dateFormat: 'dd-mm-yy',
    changeMonth: true,
    changeYear: true,
    yearRange: "c-70:c+70",
});
newCell1.appendChild(champ_date_arrivee);
</code></pre>

<p>You have the result on this link <a href="http://dianamahe.free.fr/test_tableaucalendrier4.php" rel="nofollow">this try</a>
It doesn't work.</p>

<p>I know that I have to use a code like this, but  how ?</p>

<pre><code> jQuery('.date-pick').removeClass('hasDatepicker').datepicker({
dateFormat: 'mm-dd-yy'
});
</code></pre>

<p>You are my last chance ...</p>

<p>Sorry for my english, I'm french.</p>

<p>Thank you for your help.</p>
