Problem for dynamics data

Problem for dynamics data

Hi

I don't understande how to do that.
I have a form where I add dynamically a div :

$(".datepicker").datepicker();

$("a[name='addDom']").click(function () {
            $(this).after('<div  class="exception">Fermeture excetionnelle à cette date : <input size=10 type="text" class="datepicker" name="exception_fermeture[]" value="" ><hr>Ouverture supplémentaire particulière<table border=0 ><tr><td>Date d\'exception <br>(jj/mm/aaaa) : </td><td><input size=10 type="text" name="exception[]" value="" ></td><td>Début le matin</td><td><input type="text" size=5 name="exception[date][debut_matin]"></td><td>Fin le matin</td><td><input  size=5 type="text" name="exception[date][fin_matin]"></td></tr><tr><td>Début l\'après-midi</td><td><input size=5  type="text" name="exception[date][debut_AM]"></td><td>Fin l\'apres-midi</td><td><input size=5  type="text" name="exception[date][fin_AM]"></td><td><input type="checkbox" name="exception[date][TLJ]"></td><td>Journée entière</td></tr><tr><td >&nbsp;&nbsp;Note particuliere</td><td colspan=4><input type="text" name="exception[date][note]" size="50"></td></tr></div>');
         });

Now, I'd like to add on this dynamic form a datetimepicker on my field. I have try to add a class "datepicker" :
$(".datepicker").datepicker();

but the datepicker doesn't run.

Could yoiu help me ?